Roo/bootstrap/DateField.js
[roojs1] / examples / bootstrap / dashboard3.bjs
1 {
2     "name" : "dashboard3",
3     "parent" : "",
4     "title" : "",
5     "path" : "/home/alan/gitlive/roojs1/examples/bootstrap/dashboard3.bjs",
6     "permname" : "",
7     "modOrder" : "001",
8     "items" : [
9         {
10             "String cls" : "skin-blue",
11             "xtype" : "Body",
12             "$ xns" : "Roo.bootstrap",
13             "items" : [
14                 {
15                     "String cls" : "header",
16                     "tag" : "header",
17                     "xtype" : "Container",
18                     "* xinclude" : "Dashboard.Header1",
19                     "$ xns" : "Roo.bootstrap"
20                 },
21                 {
22                     "String cls" : "wrapper row-offcanvas row-offcanvas-left",
23                     "xtype" : "Container",
24                     "flexy:include" : "Sidebar.html",
25                     "$ xns" : "Roo.bootstrap",
26                     "items" : [
27                         {
28                             "String tag" : "aside",
29                             "String cls" : "left-side sidebar-offcanvas",
30                             "xtype" : "Container",
31                             "* xinclude" : "Dashboard.Sidebar2",
32                             "$ xns" : "Roo.bootstrap"
33                         },
34                         {
35                             "String tag" : "aside",
36                             "String cls" : "right-side",
37                             "xtype" : "Container",
38                             "$ xns" : "Roo.bootstrap",
39                             "items" : [
40                                 {
41                                     "String tag" : "section",
42                                     "String cls" : "content-header",
43                                     "xtype" : "Container",
44                                     "$ xns" : "Roo.bootstrap",
45                                     "items" : [
46                                         {
47                                             "xtype" : "Header",
48                                             "$ xns" : "Roo.bootstrap",
49                                             "String html" : "Dashboard  <small> Control panel </small>"
50                                         }
51                                     ]
52                                 },
53                                 {
54                                     "String tag" : "section",
55                                     "String cls" : "content",
56                                     "xtype" : "Container",
57                                     "$ xns" : "Roo.bootstrap",
58                                     "items" : [
59                                         {
60                                             "xtype" : "Container",
61                                             "$ xns" : "Roo.bootstrap",
62                                             "items" : [
63                                                 {
64                                                     "Number md" : 3,
65                                                     "xtype" : "Column",
66                                                     "Number lg" : 3,
67                                                     "$ xns" : "Roo.bootstrap",
68                                                     "items" : [
69                                                         {
70                                                             "bgcolor" : "",
71                                                             "String cls" : "",
72                                                             "xtype" : "NumberBox",
73                                                             "String headline" : 160,
74                                                             "$ xns" : "Roo.bootstrap.dash",
75                                                             "width" : "col-md-5",
76                                                             "String title" : "New Orders",
77                                                             "String style" : "col-md-3",
78                                                             "height" : 150
79                                                         }
80                                                     ]
81                                                 },
82                                                 {
83                                                     "Number md" : 3,
84                                                     "xtype" : "Column",
85                                                     "Number lg" : 3,
86                                                     "$ xns" : "Roo.bootstrap",
87                                                     "items" : [
88                                                         {
89                                                             "bgcolor" : "green",
90                                                             "String cls" : "",
91                                                             "xtype" : "NumberBox",
92                                                             "String headline" : 150,
93                                                             "$ xns" : "Roo.bootstrap.dash",
94                                                             "width" : "col-md-5",
95                                                             "String title" : "New Orders",
96                                                             "String style" : "col-lg-3",
97                                                             "height" : 150
98                                                         }
99                                                     ]
100                                                 },
101                                                 {
102                                                     "Number md" : 3,
103                                                     "xtype" : "Column",
104                                                     "Number lg" : 3,
105                                                     "$ xns" : "Roo.bootstrap",
106                                                     "items" : [
107                                                         {
108                                                             "bgcolor" : "yellow",
109                                                             "xtype" : "NumberBox",
110                                                             "String headline" : 150,
111                                                             "$ xns" : "Roo.bootstrap.dash",
112                                                             "width" : "col-md-5",
113                                                             "String title" : "New Orders",
114                                                             "String style" : "col-lg-3",
115                                                             "height" : 150
116                                                         }
117                                                     ]
118                                                 },
119                                                 {
120                                                     "Number md" : 3,
121                                                     "Number lg" : 3,
122                                                     "xtype" : "Column",
123                                                     "$ xns" : "Roo.bootstrap",
124                                                     "items" : [
125                                                         {
126                                                             "bgcolor" : "red",
127                                                             "xtype" : "NumberBox",
128                                                             "String headline" : 150,
129                                                             "$ xns" : "Roo.bootstrap.dash",
130                                                             "width" : "",
131                                                             "String title" : "New Orders",
132                                                             "String style" : "col-lg-3",
133                                                             "height" : 150
134                                                         }
135                                                     ]
136                                                 }
137                                             ]
138                                         },
139                                         {
140                                             "xtype" : "Row",
141                                             "$ xns" : "Roo.bootstrap",
142                                             "items" : [
143                                                 {
144                                                     "xtype" : "Container",
145                                                     "$ xns" : "Roo.bootstrap"
146                                                 }
147                                             ]
148                                         },
149                                         {
150                                             "xtype" : "Row",
151                                             "$ xns" : "Roo.bootstrap",
152                                             "items" : [
153                                                 {
154                                                     "Number md" : 6,
155                                                     "xtype" : "Column",
156                                                     "Number lg" : 6,
157                                                     "$ xns" : "Roo.bootstrap",
158                                                     "String style" : "",
159                                                     "Number sm" : 12,
160                                                     "items" : [
161                                                         {
162                                                             "listeners" : {
163                                                                 "render" : "function (_self)\n{\n    _this.testbox = _self;\n}"
164                                                             },
165                                                             "xtype" : "TabBox",
166                                                             "$ xns" : "Roo.bootstrap.dash",
167                                                             "String title" : "test 1",
168                                                             "items" : [
169                                                                 {
170                                                                     "xtype" : "TabPane",
171                                                                     "$ xns" : "Roo.bootstrap.dash",
172                                                                     "string title" : "tab 1",
173                                                                     "items" : [
174                                                                         {
175                                                                             "xtype" : "Column",
176                                                                             "$ xns" : "Roo.bootstrap",
177                                                                             "items" : [
178                                                                                 {
179                                                                                     "listeners" : {
180                                                                                         "cellclick" : "function (_self, el, rowIndex, columnIndex, e)\n{\n    \n\n    var cm = this.colModel.getColumnById(this.colModel.getColumnId(columnIndex));\n    if (cm.dataIndex == 'current') {\n        var rec = _this.listTable.ds.getAt(rowIndex);\n        \n        rec.set('current', rec.data.current * 1 ? '0' : '1');\n\n        //_this.listTable.ds.fireEvent(\"datachanged\", this);\n        rec.commit();\n        return;\n    }\n      if (cm.dataIndex == 'aspire') {\n        var rec = _this.listTable.ds.getAt(rowIndex);\n        \n        rec.set('aspire', rec.data.aspire * 1 ? '0' : '1');\n\n        //_this.listTable.ds.fireEvent(\"datachanged\", this);\n        rec.commit();\n        return;\n    }\n\n     \n}",
181                                                                                         "|render" : "function (_self)\n{\n     _this.listTable = _self;\n    (function() { _self.store.load({}); }).defer(100)\n}"
182                                                                                     },
183                                                                                     "xtype" : "Table",
184                                                                                     "Boolean CellSelection" : true,
185                                                                                     "$ xns" : "Roo.bootstrap",
186                                                                                     "Boolean RowSelection" : true,
187                                                                                     "items" : [
188                                                                                         {
189                                                                                             "$ Array data" : "[\n  [ 'A TEST', '1', '0' ],\n  \n    [ 'B test', '1', '0' ],\n      [ 'C test', '1', '0' ],\n    [ 'D test', '1', '0' ]\n]",
190                                                                                             "boolean isLocal" : true,
191                                                                                             "$ Array fields" : "[ 'display_name', 'current', 'aspire' ]",
192                                                                                             "xtype" : "SimpleStore",
193                                                                                             "$ xns" : "Roo.data",
194                                                                                             "* prop" : "store"
195                                                                                         },
196                                                                                         {
197                                                                                             "String header" : "Department",
198                                                                                             "String dataIndex" : "display_name",
199                                                                                             "xtype" : "ColumnModel",
200                                                                                             "$ xns" : "Roo.grid",
201                                                                                             "* prop" : "cm[]"
202                                                                                         },
203                                                                                         {
204                                                                                             "String header" : "Current",
205                                                                                             "String dataIndex" : "current",
206                                                                                             "xtype" : "ColumnModel",
207                                                                                             "$ xns" : "Roo.grid",
208                                                                                             "$ renderer" : "function(v) {  \n\n    var state = v> 0 ?  '-checked' : '';\n\n    return v*1  > 0 ? 'X' : '-';             \n                \n }",
209                                                                                             "* prop" : "cm[]"
210                                                                                         },
211                                                                                         {
212                                                                                             "String header" : "Aspire",
213                                                                                             "String dataIndex" : "aspire",
214                                                                                             "xtype" : "ColumnModel",
215                                                                                             "$ xns" : "Roo.grid",
216                                                                                             "$ renderer" : "function(v) {  \n    var state = v> 0 ?  '-checked' : '';\n    return v*1  > 0 ? 'X' : '-';             \n }",
217                                                                                             "* prop" : "cm[]"
218                                                                                         }
219                                                                                     ]
220                                                                                 }
221                                                                             ]
222                                                                         }
223                                                                     ]
224                                                                 },
225                                                                 {
226                                                                     "xtype" : "TabPane",
227                                                                     "$ xns" : "Roo.bootstrap.dash",
228                                                                     "string title" : "tab 2",
229                                                                     "items" : [
230                                                                         {
231                                                                             "xtype" : "Column",
232                                                                             "$ xns" : "Roo.bootstrap",
233                                                                             "String html" : "tab 2 content"
234                                                                         }
235                                                                     ]
236                                                                 }
237                                                             ]
238                                                         }
239                                                     ]
240                                                 },
241                                                 {
242                                                     "Number md" : 6,
243                                                     "Number lg" : 6,
244                                                     "xtype" : "Column",
245                                                     "$ xns" : "Roo.bootstrap",
246                                                     "String style" : "",
247                                                     "Number sm" : 12,
248                                                     "items" : [
249                                                         {
250                                                             "String cls" : "nav-tabs-custom",
251                                                             "xtype" : "Container",
252                                                             "$ xns" : "Roo.bootstrap",
253                                                             "items" : [
254                                                                 {
255                                                                     "xtype" : "Header",
256                                                                     "$ xns" : "Roo.bootstrap",
257                                                                     "String html" : "income",
258                                                                     "String style" : "margin: 10,10,0,0"
259                                                                 }
260                                                             ]
261                                                         }
262                                                     ]
263                                                 }
264                                             ]
265                                         },
266                                         {
267                                             "xtype" : "Row",
268                                             "$ xns" : "Roo.bootstrap",
269                                             "items" : [
270                                                 {
271                                                     "String cls" : "tab-content carousel slide",
272                                                     "Number lg" : 12,
273                                                     "xtype" : "TabGroup",
274                                                     "$ xns" : "Roo.bootstrap",
275                                                     "items" : [
276                                                         {
277                                                             "listeners" : {
278                                                                 "render" : "function (_self)\n{\n_this.tab_second = _self;\n}"
279                                                             },
280                                                             "Boolean active" : true,
281                                                             "String cls" : "item",
282                                                             "xtype" : "TabPanel",
283                                                             "$ xns" : "Roo.bootstrap",
284                                                             "String tabId" : "#second",
285                                                             "String navId" : "#sample1",
286                                                             "items" : [
287                                                                 {
288                                                                     "xtype" : "Header",
289                                                                     "$ xns" : "Roo.bootstrap",
290                                                                     "Number level" : 3,
291                                                                     "String html" : "next tab"
292                                                                 },
293                                                                 {
294                                                                     "String cls" : "carousel-inner",
295                                                                     "xtype" : "Container",
296                                                                     "$ xns" : "Roo.bootstrap",
297                                                                     "String well" : "md",
298                                                                     "String style" : "padding-left:50px;padding-right:50px;",
299                                                                     "items" : [
300                                                                         {
301                                                                             "xtype" : "Row",
302                                                                             "$ xns" : "Roo.bootstrap",
303                                                                             "items" : [
304                                                                                 {
305                                                                                     "Number md" : 6,
306                                                                                     "xtype" : "Column",
307                                                                                     "$ xns" : "Roo.bootstrap",
308                                                                                     "items" : [
309                                                                                         {
310                                                                                             "labelAlign" : "top",
311                                                                                             "fieldLabel" : "Some input",
312                                                                                             "xtype" : "Input",
313                                                                                             "allowBlank" : true,
314                                                                                             "$ xns" : "Roo.bootstrap",
315                                                                                             "name" : "chosen_title"
316                                                                                         }
317                                                                                     ]
318                                                                                 }
319                                                                             ]
320                                                                         }
321                                                                     ]
322                                                                 }
323                                                             ]
324                                                         },
325                                                         {
326                                                             "listeners" : {
327                                                                 "render" : "function (_self)\n{\n_this.tab_first = _self;\n}"
328                                                             },
329                                                             "Boolean active" : false,
330                                                             "String cls" : "item",
331                                                             "xtype" : "TabPanel",
332                                                             "$ xns" : "Roo.bootstrap",
333                                                             "String tabId" : "#first",
334                                                             "String navId" : "#sample1",
335                                                             "items" : [
336                                                                 {
337                                                                     "xtype" : "Header",
338                                                                     "Number level" : 3,
339                                                                     "$ xns" : "Roo.bootstrap",
340                                                                     "String html" : "some title"
341                                                                 },
342                                                                 {
343                                                                     "String cls" : "carousel-inner",
344                                                                     "xtype" : "Container",
345                                                                     "$ xns" : "Roo.bootstrap",
346                                                                     "String well" : "md",
347                                                                     "String style" : "padding-left:50px;padding-right:50px;",
348                                                                     "items" : [
349                                                                         {
350                                                                             "xtype" : "Row",
351                                                                             "$ xns" : "Roo.bootstrap",
352                                                                             "items" : [
353                                                                                 {
354                                                                                     "Number md" : 6,
355                                                                                     "xtype" : "Column",
356                                                                                     "$ xns" : "Roo.bootstrap",
357                                                                                     "items" : [
358                                                                                         {
359                                                                                             "labelAlign" : "top",
360                                                                                             "fieldLabel" : "This is a label",
361                                                                                             "xtype" : "Input",
362                                                                                             "allowBlank" : true,
363                                                                                             "$ xns" : "Roo.bootstrap",
364                                                                                             "name" : "chosen_title"
365                                                                                         }
366                                                                                     ]
367                                                                                 }
368                                                                             ]
369                                                                         }
370                                                                     ]
371                                                                 }
372                                                             ]
373                                                         },
374                                                         {
375                                                             "String cls" : "carousel-control left",
376                                                             "Boolean preventDefault" : true,
377                                                             "xtype" : "Link",
378                                                             "$ xns" : "Roo.bootstrap",
379                                                             "String html" : "<span class=\"glyphicon glyphicon-chevron-left\"></span>"
380                                                         },
381                                                         {
382                                                             "listeners" : {
383                                                                 "click" : "function (e)\n{\n  _this.tab_first.setActive(false);\n_this.tab_second.setActive(true);\n}"
384                                                             },
385                                                             "String cls" : "carousel-control right",
386                                                             "Boolean preventDefault" : true,
387                                                             "xtype" : "Link",
388                                                             "$ xns" : "Roo.bootstrap",
389                                                             "String html" : "<span class=\"glyphicon glyphicon-chevron-right\"></span>"
390                                                         }
391                                                     ]
392                                                 }
393                                             ]
394                                         }
395                                     ]
396                                 }
397                             ]
398                         }
399                     ]
400                 }
401             ]
402         }
403     ]
404 }