MainConfig.js 1.3 KB
Ext.define('App.view.MainConfig', {
    extend : 'Ext.form.Panel',
    xtype  : 'mvvm-MainConfigView',
    requires : [
      'App.view.MainConfigViewModel' 
    ],

    frame   : true,
    padding : 10,
    
    bind : {
    },
    
    viewModel: {
        type: 'mainconfigform'  // references DetailViewModel
    },
    
 bbar: {items: [{
		            xtype: 'button',
		            iconCls:'save',
		            itemId: 'SaveMainConfigButton',
		            text: 'Сохранить',
		            action: 'saveMainConfig',
		            disabled:false
    			},
		        {
		            xtype: 'button',
		            iconCls:'load',
		            itemId: 'LoadMainConfigButton',
		            text: 'Обновить',
		            action: 'loadMainConfig',
		            disabled:false
		        }]	
    },
    
    items : [{
                 xtype      : 'textfield',
                 bind       : '{guid}',
                 fieldLabel : 'GUID',
                 id:'guid',
                 disable:true,
                 width:500,
                 margin:'5 5 10 3'
           	 },{
	    	   xtype      : 'textarea',
	           bind       : '{description}',
	           fieldLabel : 'ОПИСАНИЕ',
	           height:50,
	           width:500,
	           id:'title',
	           margin:'5 5 10 3'
	        }]
});