roojs-all.js
[roojs1] / examples / bootstrap / Grid.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 Grid = new Roo.XComponent({
6
7  _strings : {
8   'ce8ae9da5b7cd6c3df2929543a9af92d' :"Email",
9   'b4f18f5b05307bd1e3cc00e0802d641b' :"investor",
10   'bcc254b55c4a1babdf1dcb82c207506b' :"Phone",
11   'd76c3244d1460406c2a67421c64ed44a' :"Incomplete Items",
12   '49ee3087348e8d44e1feda1917443987' :"Name",
13   'f561aaf6ef0bf14d4208bb46a4ccb3ad' :"xxx"
14  },
15
16   part     :  ["bootstrap", "Grid" ],
17   order    : '001-Grid',
18   region   : 'center',
19   parent   : false,
20   name     : "unnamed module",
21   disabled : false, 
22   permname : '', 
23   _tree : function(_data)
24   {
25    var _this = this;
26    var MODULE = this;
27    return {
28    xtype : 'Grid',
29    autoScroll : true,
30    closable : false,
31    fitToFrame : true,
32    region : 'center',
33    title : _this._strings['b4f18f5b05307bd1e3cc00e0802d641b'] /* investor */,
34    xns : Roo.bootstrap.panel,
35    '|xns' : 'Roo.bootstrap.panel',
36    toolbar : {
37     xtype : 'NavSimplebar',
38     xns : Roo.bootstrap,
39     '|xns' : 'Roo.bootstrap',
40     items  : [
41      {
42       xtype : 'NavGroup',
43       xns : Roo.bootstrap,
44       '|xns' : 'Roo.bootstrap',
45       items  : [
46        {
47         xtype : 'NavItem',
48         html : _this._strings['f561aaf6ef0bf14d4208bb46a4ccb3ad'] /* xxx */,
49         xns : Roo.bootstrap,
50         '|xns' : 'Roo.bootstrap'
51        }
52       ]
53      }
54     ]
55    },
56    grid : {
57     xtype : 'Table',
58     cls : 'table-fixed',
59     loadMask : true,
60     striped : true,
61     listeners : {
62      render : function (_self)
63       {
64          this.ds.load({});
65       }
66     },
67     xns : Roo.bootstrap,
68     '|xns' : 'Roo.bootstrap',
69     store : {
70      xtype : 'Store',
71      xns : Roo.data,
72      '|xns' : 'Roo.data',
73      proxy : {
74       xtype : 'MemoryProxy',
75       data : [
76           ['Fred Blogs', 'fred@fred.com', '+852 123 123 12', 'Contact, KYC/AM, Banking, Documents, Declarations, Signed Forms']
77       ],
78       xns : Roo.data,
79       '|xns' : 'Roo.data'
80      },
81      reader : {
82       xtype : 'ArrayReader',
83       fields : [
84           {name: 'name', type : 'string'},
85           {name: 'email', type : 'string'},
86           {name: 'phone', type : 'string'},
87           {name: 'incompleteItems', type : 'string'}
88       ],
89       xns : Roo.data,
90       '|xns' : 'Roo.data'
91      }
92     },
93     cm : [
94      {
95       xtype : 'ColumnModel',
96       dataIndex : 'name',
97       header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
98       locked : false,
99       sortable : false,
100       width : 150,
101       xns : Roo.grid,
102       '|xns' : 'Roo.grid'
103      },
104      {
105       xtype : 'ColumnModel',
106       dataIndex : 'email',
107       header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
108       sortable : false,
109       width : 150,
110       xns : Roo.grid,
111       '|xns' : 'Roo.grid'
112      },
113      {
114       xtype : 'ColumnModel',
115       dataIndex : 'phone',
116       header : _this._strings['bcc254b55c4a1babdf1dcb82c207506b'] /* Phone */,
117       sortable : false,
118       width : 150,
119       xns : Roo.grid,
120       '|xns' : 'Roo.grid'
121      },
122      {
123       xtype : 'ColumnModel',
124       dataIndex : 'incompleteItems',
125       header : _this._strings['d76c3244d1460406c2a67421c64ed44a'] /* Incomplete Items */,
126       sortable : false,
127       width : 800,
128       xns : Roo.grid,
129       '|xns' : 'Roo.grid'
130      }
131     ]
132    }
133   };  }
134 });