resources/Editors/Editor.Roo.LayoutDialog.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 24 Apr 2015 08:40:24 +0000 (16:40 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 24 Apr 2015 08:40:24 +0000 (16:40 +0800)
resources/Editors/Editor.Roo.LayoutDialog.js

resources/Editors/Editor.Roo.LayoutDialog.bjs
resources/Editors/Editor.Roo.LayoutDialog.js

index 1aeae52..09487bc 100644 (file)
            "$ xns" : "Roo.form",
            "mode" : "local",
            "name" : "status",
+           "* prop" : "field",
            "items" : [
             {
              "xtype" : "SimpleStore",
index 9165357..f66a1f5 100644 (file)
@@ -125,52 +125,53 @@ Editor.Roo.LayoutDialog = new Roo.XComponent({
       },
 {
        editor : {
+        field : {
+         store : {
+          '|xns' : 'Roo.data',
+          data : [ 
+              [ 'O', "Open"],
+              [ 'C' , "Closed"],
+              [ 'A', "All"] 
+          ],
+          fields : [  'ftype', 'fname'],
+          xns : Roo.data,
+          xtype : 'SimpleStore'
+         },
+         '|xns' : 'Roo.form',
+         allowBlank : false,
+         displayField : 'fname',
+         editable : false,
+         fieldLabel : 'Status',
+         hiddenName : 'status',
+         listWidth : 200,
+         mode : 'local',
+         name : 'status',
+         triggerAction : 'all',
+         value : _this._strings['7fc56270e7a70fa81a5935b72eacbe29'],
+         valueField : 'ftype',
+         width : 150,
+         xns : Roo.form,
+         xtype : 'ComboBox',
+         listeners : {
+          render : function (_self)
+           {
+             _this.status = _self;
+           },
+          select : function (combo, record, index)
+           {
+               _this.grid.ds.load({});
+           }
+         },
+         items : [
+
+         ]
+
+        },
         '|xns' : 'Roo.grid',
         xns : Roo.grid,
         xtype : 'GridEditor',
         items : [
-         {
-          store : {
-           '|xns' : 'Roo.data',
-           data : [ 
-               [ 'O', "Open"],
-               [ 'C' , "Closed"],
-               [ 'A', "All"] 
-           ],
-           fields : [  'ftype', 'fname'],
-           xns : Roo.data,
-           xtype : 'SimpleStore'
-          },
-          '|xns' : 'Roo.form',
-          allowBlank : false,
-          displayField : 'fname',
-          editable : false,
-          fieldLabel : 'Status',
-          hiddenName : 'status',
-          listWidth : 200,
-          mode : 'local',
-          name : 'status',
-          triggerAction : 'all',
-          value : _this._strings['7fc56270e7a70fa81a5935b72eacbe29'],
-          valueField : 'ftype',
-          width : 150,
-          xns : Roo.form,
-          xtype : 'ComboBox',
-          listeners : {
-           render : function (_self)
-            {
-              _this.status = _self;
-            },
-           select : function (combo, record, index)
-            {
-                _this.grid.ds.load({});
-            }
-          },
-          items : [
 
-          ]
-
-         }
         ]
 
        },