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

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

index b2610a6..dac8b86 100644 (file)
         }
        ]
       },
+      {
+       "xtype" : "ColumnModel",
+       "header" : "Field Type",
+       "width" : 75,
+       "$ renderer" : "function(v) { return String.format('{0}', v); }",
+       "$ xns" : "Roo.grid",
+       "* prop" : "cm[]",
+       "dataIndex" : "ftype",
+       "items" : [
+        {
+         "xtype" : "GridEditor",
+         "$ xns" : "Roo.grid",
+         "* prop" : "editor",
+         "items" : [
+          {
+           "listWidth" : 200,
+           "triggerAction" : "all",
+           "displayField" : "fname",
+           "hiddenName" : "status",
+           "valueField" : "ftype",
+           "xtype" : "ComboBox",
+           "allowBlank" : false,
+           "editable" : false,
+           "width" : 150,
+           "$ xns" : "Roo.form",
+           "mode" : "local",
+           "name" : "status",
+           "* prop" : "field",
+           "items" : [
+            {
+             "xtype" : "SimpleStore",
+             "$ data" : "[ \n    [ 'ComboBox', \"ComboBox\"],\n    [ 'Text' , \"TextField\"],\n    [ 'Number', \"NumberField\"],\n    [ 'TextArea', \"TextArea\"],\n    [ 'Html', \"HtmlEntry\"]\n    \n]\n",
+             "$ fields" : "[  'ftype', 'fname']",
+             "$ xns" : "Roo.data",
+             "* prop" : "store"
+            }
+           ]
+          }
+         ]
+        }
+       ]
+      },
       {
        "xtype" : "ColumnModel",
        "width" : 75,
index 5804ec6..33ad6b6 100644 (file)
@@ -177,6 +177,61 @@ Editor.Roo.LayoutDialog = new Roo.XComponent({
 
        ]
 
+      },
+{
+       editor : {
+        field : {
+         store : {
+          '|xns' : 'Roo.data',
+          data : [ 
+              [ 'ComboBox', "ComboBox"],
+              [ 'Text' , "TextField"],
+              [ 'Number', "NumberField"],
+              [ 'TextArea', "TextArea"],
+              [ 'Html', "HtmlEntry"]
+              
+          ],
+          fields : [  'ftype', 'fname'],
+          xns : Roo.data,
+          xtype : 'SimpleStore'
+         },
+         '|xns' : 'Roo.form',
+         allowBlank : false,
+         displayField : 'fname',
+         editable : false,
+         hiddenName : 'status',
+         listWidth : 200,
+         mode : 'local',
+         name : 'status',
+         triggerAction : 'all',
+         valueField : 'ftype',
+         width : 150,
+         xns : Roo.form,
+         xtype : 'ComboBox',
+         items : [
+
+         ]
+
+        },
+        '|xns' : 'Roo.grid',
+        xns : Roo.grid,
+        xtype : 'GridEditor',
+        items : [
+
+        ]
+
+       },
+       '|xns' : 'Roo.grid',
+       dataIndex : 'ftype',
+       header : _this._strings['189efd19c4153526994a6d7ea5f6f068'],
+       renderer : function(v) { return String.format('{0}', v); },
+       width : 75,
+       xns : Roo.grid,
+       xtype : 'ColumnModel',
+       items : [
+
+       ]
+
       },
 {
        editor : {