From 291964062880ce8ecf2339a749f14e5a4fb96d7b Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 6 May 2015 15:39:42 +0800 Subject: [PATCH] resources/Editors/Editor.Roo.LayoutDialog.bjs resources/Editors/Editor.Roo.LayoutDialog.js --- resources/Editors/Editor.Roo.LayoutDialog.bjs | 2 +- resources/Editors/Editor.Roo.LayoutDialog.js | 31 ++++++++++++++++++- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/resources/Editors/Editor.Roo.LayoutDialog.bjs b/resources/Editors/Editor.Roo.LayoutDialog.bjs index 2425be886..acd52103b 100644 --- a/resources/Editors/Editor.Roo.LayoutDialog.bjs +++ b/resources/Editors/Editor.Roo.LayoutDialog.bjs @@ -49,7 +49,7 @@ "* prop" : "grid", "items" : [ { - "$ Array fields" : "[ 'active', 'dataIndex', 'type','title', 'width', 'ftype', 'display_field' ]", + "$ Array fields" : "[\n {\n 'name': 'active',\n 'type': 'boolean'\n },\n {\n 'name': 'dataIndex',\n 'type': 'string'\n },\n {\n 'name': 'type',\n 'type': 'string'\n },\n {\n 'name': 'title',\n 'type': 'string'\n },\n {\n 'name': 'width',\n 'type': 'int'\n },\n {\n 'name': 'ftype',\n 'type': 'string'\n },\n {\n 'name': 'display_field',\n 'type': 'string'\n }\n]", "$ Array data" : "[\n [ 1, 'test', 'test', 110 ]\n \n\n]", "Number id" : "'dataIndex'", "xtype" : "SimpleStore", diff --git a/resources/Editors/Editor.Roo.LayoutDialog.js b/resources/Editors/Editor.Roo.LayoutDialog.js index d8dbf51dd..4295fd6b9 100644 --- a/resources/Editors/Editor.Roo.LayoutDialog.js +++ b/resources/Editors/Editor.Roo.LayoutDialog.js @@ -40,7 +40,36 @@ Editor.Roo.LayoutDialog = new Roo.XComponent({ ], - fields : [ 'active', 'dataIndex', 'type','title', 'width', 'ftype', 'display_field' ], + fields : [ + { + 'name': 'active', + 'type': 'boolean' + }, + { + 'name': 'dataIndex', + 'type': 'string' + }, + { + 'name': 'type', + 'type': 'string' + }, + { + 'name': 'title', + 'type': 'string' + }, + { + 'name': 'width', + 'type': 'int' + }, + { + 'name': 'ftype', + 'type': 'string' + }, + { + 'name': 'display_field', + 'type': 'string' + } + ], id : 'dataindex', xns : Roo.data, xtype : 'SimpleStore' -- 2.39.2