PingUtil.js 1.09 KB
Ext.define('App.view.PingUtil', {
    extend : 'Ext.form.Panel',
    xtype  : 'mvvm-PingUtilView',
    requires : [
      'App.view.PingUtilViewModel' 
    ],

    frame   : true,
    padding : 10,
    
    bind : {
      //  reference : 'App.model.MainConfig',
       // title     : '{rec.title}'
    },
    
    viewModel: {
        type: 'pingutilform'  // references DetailViewModel
    },
    
    items : [
             
             {
                 xtype      : 'textfield',
                 bind       : '{rec.host}',
                 fieldLabel : 'HOST',
                 disable:true,
                 margin:'5 5 10 3'
             },
           
             {
	            xtype  : 'button',
	            text   : 'PING',
	            itemId : 'SaveRecord'
	        },
	       {
	   
	           bind       : '{rec.result}',
	           fieldLabel : 'РЕЗУЛЬТАТ',
	           margin:'5 5 10 3',
	           xtype     : 'textareafield',
	           grow      : true,
	           preventScrollbars: false,
	           width:700,
	           height:200
	        },
      
	       
	        
    ]
});