roojs-all.js
[roojs1] / examples / bootstrap / Grid.bjs
1 {
2  "name" : "Grid",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/roojs1/examples/bootstrap/Grid.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
10   "b4f18f5b05307bd1e3cc00e0802d641b" : "investor",
11   "bcc254b55c4a1babdf1dcb82c207506b" : "Phone",
12   "d76c3244d1460406c2a67421c64ed44a" : "Incomplete Items",
13   "49ee3087348e8d44e1feda1917443987" : "Name",
14   "f561aaf6ef0bf14d4208bb46a4ccb3ad" : "xxx"
15  },
16  "items" : [
17   {
18    "xtype" : "Grid",
19    "Boolean fitToFrame" : true,
20    "$ xns" : "Roo.bootstrap.panel",
21    "String region" : "center",
22    "String title" : "investor",
23    "Boolean autoScroll" : true,
24    "Boolean closable" : false,
25    "items" : [
26     {
27      "listeners" : {
28       "render" : "function (_self)\n{\n   this.ds.load({});\n}"
29      },
30      "String cls" : "table-fixed",
31      "boolean striped" : true,
32      "xtype" : "Table",
33      "$ xns" : "Roo.bootstrap",
34      "Boolean loadMask" : true,
35      "* prop" : "grid",
36      "items" : [
37       {
38        "xtype" : "Store",
39        "$ xns" : "Roo.data",
40        "* prop" : "store",
41        "items" : [
42         {
43          "$ string data" : "[\n    ['Fred Blogs', 'fred@fred.com', '+852 123 123 12', 'Contact, KYC/AM, Banking, Documents, Declarations, Signed Forms']\n]",
44          "xtype" : "MemoryProxy",
45          "$ xns" : "Roo.data",
46          "* prop" : "proxy"
47         },
48         {
49          "xtype" : "ArrayReader",
50          "$ string fields" : "[\n    {name: 'name', type : 'string'},\n    {name: 'email', type : 'string'},\n    {name: 'phone', type : 'string'},\n    {name: 'incompleteItems', type : 'string'}\n]",
51          "$ xns" : "Roo.data",
52          "* prop" : "reader"
53         }
54        ]
55       },
56       {
57        "String header" : "Name",
58        "String dataIndex" : "name",
59        "Number width" : 150,
60        "xtype" : "ColumnModel",
61        "$ xns" : "Roo.grid",
62        "Boolean sortable" : false,
63        "* prop" : "cm[]",
64        "Boolean locked" : false
65       },
66       {
67        "String header" : "Email",
68        "String dataIndex" : "email",
69        "Number width" : 150,
70        "xtype" : "ColumnModel",
71        "$ xns" : "Roo.grid",
72        "Boolean sortable" : false,
73        "* prop" : "cm[]"
74       },
75       {
76        "String header" : "Phone",
77        "String dataIndex" : "phone",
78        "Number width" : 150,
79        "xtype" : "ColumnModel",
80        "$ xns" : "Roo.grid",
81        "Boolean sortable" : false,
82        "* prop" : "cm[]"
83       },
84       {
85        "String header" : "Incomplete Items",
86        "String dataIndex" : "incompleteItems",
87        "Number width" : 800,
88        "xtype" : "ColumnModel",
89        "$ xns" : "Roo.grid",
90        "Boolean sortable" : false,
91        "* prop" : "cm[]"
92       }
93      ]
94     },
95     {
96      "xtype" : "NavSimplebar",
97      "$ xns" : "Roo.bootstrap",
98      "* prop" : "toolbar",
99      "items" : [
100       {
101        "xtype" : "NavGroup",
102        "$ xns" : "Roo.bootstrap",
103        "items" : [
104         {
105          "xtype" : "NavItem",
106          "$ xns" : "Roo.bootstrap",
107          "String html" : "xxx"
108         }
109        ]
110       }
111      ]
112     }
113    ]
114   }
115  ]
116 }