examples/bootstrap/dashboard1.bjs.S71JMX
[roojs1] / examples / bootstrap / dashboard1.bjs
1 {
2     "name" : "dashboard1",
3     "parent" : "",
4     "title" : "",
5     "path" : "/home/alan/gitlive/roojs1/examples/bootstrap/dashboard1.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                     "xtype" : "Container",
17                     "tag" : "header",
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" : "General Form Elements  <small> Preview </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" : "Row",
61                                             "$ xns" : "Roo.bootstrap",
62                                             "items" : [
63                                                 {
64                                                     "Number md" : 6,
65                                                     "xtype" : "Column",
66                                                     "$ xns" : "Roo.bootstrap",
67                                                     "Number sm" : 12,
68                                                     "items" : [
69                                                         {
70                                                             "String cls" : "box box-primary",
71                                                             "xtype" : "Container",
72                                                             "$ xns" : "Roo.bootstrap",
73                                                             "items" : [
74                                                                 {
75                                                                     "String cls" : "box-header",
76                                                                     "xtype" : "Container",
77                                                                     "$ xns" : "Roo.bootstrap",
78                                                                     "items" : [
79                                                                         {
80                                                                             "String cls" : "box-title",
81                                                                             "xtype" : "Header",
82                                                                             "$ xns" : "Roo.bootstrap",
83                                                                             "Number level" : 3,
84                                                                             "String html" : "Quick Example"
85                                                                         }
86                                                                     ]
87                                                                 },
88                                                                 {
89                                                                     "xtype" : "Form",
90                                                                     "String labelAlign" : "top",
91                                                                     "$ xns" : "Roo.bootstrap",
92                                                                     "items" : [
93                                                                         {
94                                                                             "String cls" : "box-body",
95                                                                             "xtype" : "Container",
96                                                                             "$ xns" : "Roo.bootstrap",
97                                                                             "items" : [
98                                                                                 {
99                                                                                     "xtype" : "Input",
100                                                                                     "string placeholder" : "Enter email",
101                                                                                     "String fieldLabel" : "Email Address",
102                                                                                     "$ xns" : "Roo.bootstrap",
103                                                                                     "String vtype" : "email"
104                                                                                 },
105                                                                                 {
106                                                                                     "xtype" : "Input",
107                                                                                     "string placeholder" : "Enter password",
108                                                                                     "String inputType" : "password",
109                                                                                     "String fieldLabel" : "Password",
110                                                                                     "$ xns" : "Roo.bootstrap"
111                                                                                 },
112                                                                                 {
113                                                                                     "xtype" : "Input",
114                                                                                     "string placeholder" : "Enter email",
115                                                                                     "String inputType" : "file",
116                                                                                     "String fieldLabel" : "File Input",
117                                                                                     "$ xns" : "Roo.bootstrap"
118                                                                                 },
119                                                                                 {
120                                                                                     "xtype" : "CheckBox",
121                                                                                     "String boxLabel" : "checkbox",
122                                                                                     "$ xns" : "Roo.bootstrap"
123                                                                                 },
124                                                                                 {
125                                                                                     "String weight" : "primary",
126                                                                                     "xtype" : "Button",
127                                                                                     "$ xns" : "Roo.bootstrap",
128                                                                                     "String html" : "Submit"
129                                                                                 }
130                                                                             ]
131                                                                         }
132                                                                     ]
133                                                                 }
134                                                             ]
135                                                         },
136                                                         {
137                                                             "String cls" : "box box-success",
138                                                             "xtype" : "Container",
139                                                             "$ xns" : "Roo.bootstrap",
140                                                             "items" : [
141                                                                 {
142                                                                     "String cls" : "box-header",
143                                                                     "xtype" : "Container",
144                                                                     "$ xns" : "Roo.bootstrap",
145                                                                     "items" : [
146                                                                         {
147                                                                             "String cls" : "box-title",
148                                                                             "xtype" : "Header",
149                                                                             "$ xns" : "Roo.bootstrap",
150                                                                             "Number level" : 3,
151                                                                             "String html" : "Different Height"
152                                                                         }
153                                                                     ]
154                                                                 },
155                                                                 {
156                                                                     "xtype" : "Form",
157                                                                     "String labelAlign" : "top",
158                                                                     "$ xns" : "Roo.bootstrap",
159                                                                     "items" : [
160                                                                         {
161                                                                             "String cls" : "box-body",
162                                                                             "xtype" : "Container",
163                                                                             "$ xns" : "Roo.bootstrap",
164                                                                             "items" : [
165                                                                                 {
166                                                                                     "xtype" : "Input",
167                                                                                     "string placeholder" : "size lg",
168                                                                                     "$ xns" : "Roo.bootstrap",
169                                                                                     "string size" : "lg"
170                                                                                 },
171                                                                                 {
172                                                                                     "xtype" : "Input",
173                                                                                     "string placeholder" : "size md",
174                                                                                     "$ xns" : "Roo.bootstrap",
175                                                                                     "string size" : "md"
176                                                                                 },
177                                                                                 {
178                                                                                     "xtype" : "Input",
179                                                                                     "string placeholder" : "size sm",
180                                                                                     "$ xns" : "Roo.bootstrap",
181                                                                                     "string size" : "sm"
182                                                                                 }
183                                                                             ]
184                                                                         }
185                                                                     ]
186                                                                 }
187                                                             ]
188                                                         },
189                                                         {
190                                                             "String cls" : "box box-danger",
191                                                             "xtype" : "Container",
192                                                             "$ xns" : "Roo.bootstrap",
193                                                             "items" : [
194                                                                 {
195                                                                     "String cls" : "box-header",
196                                                                     "xtype" : "Container",
197                                                                     "$ xns" : "Roo.bootstrap",
198                                                                     "items" : [
199                                                                         {
200                                                                             "String cls" : "box-title",
201                                                                             "xtype" : "Header",
202                                                                             "$ xns" : "Roo.bootstrap",
203                                                                             "Number level" : 3,
204                                                                             "String html" : "Different Width"
205                                                                         }
206                                                                     ]
207                                                                 },
208                                                                 {
209                                                                     "xtype" : "Form",
210                                                                     "String labelAlign" : "top",
211                                                                     "$ xns" : "Roo.bootstrap",
212                                                                     "items" : [
213                                                                         {
214                                                                             "String cls" : "box-body",
215                                                                             "xtype" : "Container",
216                                                                             "$ xns" : "Roo.bootstrap",
217                                                                             "items" : [
218                                                                                 {
219                                                                                     "xtype" : "Row",
220                                                                                     "$ xns" : "Roo.bootstrap",
221                                                                                     "items" : [
222                                                                                         {
223                                                                                             "Number md" : 3,
224                                                                                             "xtype" : "Input",
225                                                                                             "string placeholder" : "md 3",
226                                                                                             "$ xns" : "Roo.bootstrap",
227                                                                                             "string size" : "md"
228                                                                                         },
229                                                                                         {
230                                                                                             "Number md" : 3,
231                                                                                             "xtype" : "Input",
232                                                                                             "string placeholder" : "md 4",
233                                                                                             "$ xns" : "Roo.bootstrap",
234                                                                                             "string size" : "md"
235                                                                                         },
236                                                                                         {
237                                                                                             "Number md" : 5,
238                                                                                             "xtype" : "Input",
239                                                                                             "string placeholder" : "md 3",
240                                                                                             "$ xns" : "Roo.bootstrap",
241                                                                                             "string size" : "md"
242                                                                                         }
243                                                                                     ]
244                                                                                 }
245                                                                             ]
246                                                                         }
247                                                                     ]
248                                                                 }
249                                                             ]
250                                                         },
251                                                         {
252                                                             "String cls" : "box box-info",
253                                                             "xtype" : "Container",
254                                                             "$ xns" : "Roo.bootstrap",
255                                                             "items" : [
256                                                                 {
257                                                                     "String cls" : "box-header",
258                                                                     "xtype" : "Container",
259                                                                     "$ xns" : "Roo.bootstrap",
260                                                                     "items" : [
261                                                                         {
262                                                                             "String cls" : "box-title",
263                                                                             "xtype" : "Header",
264                                                                             "$ xns" : "Roo.bootstrap",
265                                                                             "Number level" : 3,
266                                                                             "String html" : "Input Addon"
267                                                                         }
268                                                                     ]
269                                                                 },
270                                                                 {
271                                                                     "xtype" : "Form",
272                                                                     "String labelAlign" : "top",
273                                                                     "$ xns" : "Roo.bootstrap",
274                                                                     "items" : [
275                                                                         {
276                                                                             "String cls" : "box-body",
277                                                                             "xtype" : "Container",
278                                                                             "$ xns" : "Roo.bootstrap",
279                                                                             "items" : [
280                                                                                 {
281                                                                                     "xtype" : "Input",
282                                                                                     "string placeholder" : "before : @",
283                                                                                     "$ xns" : "Roo.bootstrap",
284                                                                                     "string before" : "@",
285                                                                                     "string size" : "md"
286                                                                                 },
287                                                                                 {
288                                                                                     "xtype" : "Input",
289                                                                                     "string placeholder" : "after: .00",
290                                                                                     "$ xns" : "Roo.bootstrap",
291                                                                                     "string size" : "md",
292                                                                                     "string after" : 0
293                                                                                 },
294                                                                                 {
295                                                                                     "xtype" : "Input",
296                                                                                     "string placeholder" : "before $, after: .00",
297                                                                                     "$ xns" : "Roo.bootstrap",
298                                                                                     "string before" : "$",
299                                                                                     "string size" : "md",
300                                                                                     "string after" : 0
301                                                                                 },
302                                                                                 {
303                                                                                     "xtype" : "Header",
304                                                                                     "$ xns" : "Roo.bootstrap",
305                                                                                     "Number level" : 4,
306                                                                                     "String html" : "With Icons"
307                                                                                 },
308                                                                                 {
309                                                                                     "xtype" : "Input",
310                                                                                     "string placeholder" : "before : &lt;i class=&quot;fa fa-envelope&quot;&gt;&lt;/i&gt;",
311                                                                                     "$ xns" : "Roo.bootstrap",
312                                                                                     "string before" : "<i class=\"fa fa-envelope\"></i>",
313                                                                                     "string size" : "md"
314                                                                                 },
315                                                                                 {
316                                                                                     "xtype" : "Input",
317                                                                                     "string placeholder" : "after : &lt;i class=&quot;fa fa-after&quot;&gt;&lt;/i&gt;",
318                                                                                     "$ xns" : "Roo.bootstrap",
319                                                                                     "string size" : "md",
320                                                                                     "string after" : "<i class=\"fa fa-check\"></i>"
321                                                                                 },
322                                                                                 {
323                                                                                     "xtype" : "Input",
324                                                                                     "string placeholder" : "after : &lt;i class=&quot;fa fa-ambulance&quot;&gt;&lt;/i&gt; before : &lt;i class=&quot;fa fa-dollar&quot;&gt;&lt;/i&gt;",
325                                                                                     "$ xns" : "Roo.bootstrap",
326                                                                                     "string before" : "<i class=\"fa fa-dollar\"></i>",
327                                                                                     "string size" : "md",
328                                                                                     "string after" : "<i class=\"fa fa-ambulance\"></i>"
329                                                                                 },
330                                                                                 {
331                                                                                     "xtype" : "Header",
332                                                                                     "Number level" : 4,
333                                                                                     "$ xns" : "Roo.bootstrap",
334                                                                                     "String html" : "With checkbox and radio"
335                                                                                 },
336                                                                                 {
337                                                                                     "xtype" : "Row",
338                                                                                     "$ xns" : "Roo.bootstrap",
339                                                                                     "items" : [
340                                                                                         {
341                                                                                             "Number md" : 6,
342                                                                                             "xtype" : "Input",
343                                                                                             "string placeholder" : "?",
344                                                                                             "$ xns" : "Roo.bootstrap",
345                                                                                             "string before" : "fixme",
346                                                                                             "string size" : "md"
347                                                                                         },
348                                                                                         {
349                                                                                             "Number md" : 6,
350                                                                                             "xtype" : "Input",
351                                                                                             "string placeholder" : "md 4",
352                                                                                             "$ xns" : "Roo.bootstrap",
353                                                                                             "string size" : "md"
354                                                                                         }
355                                                                                     ]
356                                                                                 },
357                                                                                 {
358                                                                                     "xtype" : "Header",
359                                                                                     "$ xns" : "Roo.bootstrap",
360                                                                                     "Number level" : 4,
361                                                                                     "String html" : "With buttons"
362                                                                                 },
363                                                                                 {
364                                                                                     "xtype" : "Input",
365                                                                                     "string placeholder" : "before :  - an object...    ",
366                                                                                     "$ xns" : "Roo.bootstrap",
367                                                                                     "string size" : "md",
368                                                                                     "items" : [
369                                                                                         {
370                                                                                             "listeners" : {
371                                                                                                 "render" : "function (_self)\n{\n    _this.httpButton = _self;\n}"
372                                                                                             },
373                                                                                             "String weight" : "primary",
374                                                                                             "xtype" : "Button",
375                                                                                             "$ xns" : "Roo.bootstrap",
376                                                                                             "String html" : "http://",
377                                                                                             "* prop" : "before",
378                                                                                             "items" : [
379                                                                                                 {
380                                                                                                     "xtype" : "Menu",
381                                                                                                     "$ xns" : "Roo.bootstrap",
382                                                                                                     "* prop" : "menu",
383                                                                                                     "items" : [
384                                                                                                         {
385                                                                                                             "listeners" : {
386                                                                                                                 "click" : "function (e)\n{\n    _this.httpButton.setText(\"http://\");\n}"
387                                                                                                             },
388                                                                                                             "xtype" : "MenuItem",
389                                                                                                             "$ xns" : "Roo.bootstrap",
390                                                                                                             "String html" : "http://"
391                                                                                                         },
392                                                                                                         {
393                                                                                                             "listeners" : {
394                                                                                                                 "click" : "function (e)\n{\n    _this.httpButton.setText(\"https://\");\n}"
395                                                                                                             },
396                                                                                                             "xtype" : "MenuItem",
397                                                                                                             "$ xns" : "Roo.bootstrap",
398                                                                                                             "String html" : "https://"
399                                                                                                         }
400                                                                                                     ]
401                                                                                                 }
402                                                                                             ]
403                                                                                         }
404                                                                                     ]
405                                                                                 },
406                                                                                 {
407                                                                                     "xtype" : "Input",
408                                                                                     "string placeholder" : "after - a button",
409                                                                                     "$ xns" : "Roo.bootstrap",
410                                                                                     "string size" : "md",
411                                                                                     "items" : [
412                                                                                         {
413                                                                                             "String weight" : "success",
414                                                                                             "xtype" : "Button",
415                                                                                             "$ xns" : "Roo.bootstrap",
416                                                                                             "String html" : "Go",
417                                                                                             "* prop" : "after"
418                                                                                         }
419                                                                                     ]
420                                                                                 }
421                                                                             ]
422                                                                         }
423                                                                     ]
424                                                                 }
425                                                             ]
426                                                         }
427                                                     ]
428                                                 },
429                                                 {
430                                                     "Number md" : 6,
431                                                     "xtype" : "Column",
432                                                     "$ xns" : "Roo.bootstrap",
433                                                     "Number sm" : 12,
434                                                     "items" : [
435                                                         {
436                                                             "String cls" : "box box-warning",
437                                                             "xtype" : "Container",
438                                                             "$ xns" : "Roo.bootstrap",
439                                                             "items" : [
440                                                                 {
441                                                                     "String cls" : "box-header",
442                                                                     "xtype" : "Container",
443                                                                     "$ xns" : "Roo.bootstrap",
444                                                                     "items" : [
445                                                                         {
446                                                                             "String cls" : "box-title",
447                                                                             "xtype" : "Header",
448                                                                             "$ xns" : "Roo.bootstrap",
449                                                                             "Number level" : 3,
450                                                                             "String html" : "General Elements"
451                                                                         }
452                                                                     ]
453                                                                 },
454                                                                 {
455                                                                     "xtype" : "Form",
456                                                                     "String labelAlign" : "top",
457                                                                     "$ xns" : "Roo.bootstrap",
458                                                                     "items" : [
459                                                                         {
460                                                                             "String cls" : "box-body",
461                                                                             "xtype" : "Container",
462                                                                             "$ xns" : "Roo.bootstrap",
463                                                                             "items" : [
464                                                                                 {
465                                                                                     "xtype" : "Input",
466                                                                                     "string placeholder" : "Enter ...",
467                                                                                     "String fieldLabel" : "Text",
468                                                                                     "$ xns" : "Roo.bootstrap"
469                                                                                 },
470                                                                                 {
471                                                                                     "xtype" : "Input",
472                                                                                     "string placeholder" : "disabled = true",
473                                                                                     "Boolean disabled" : true,
474                                                                                     "String fieldLabel" : "Text",
475                                                                                     "$ xns" : "Roo.bootstrap"
476                                                                                 },
477                                                                                 {
478                                                                                     "xtype" : "TextArea",
479                                                                                     "$ xns" : "Roo.bootstrap",
480                                                                                     "String fieldLabel" : "Textarea"
481                                                                                 },
482                                                                                 {
483                                                                                     "xtype" : "TextArea",
484                                                                                     "string placeholder" : "disabled=true",
485                                                                                     "Boolean disabled" : true,
486                                                                                     "$ xns" : "Roo.bootstrap",
487                                                                                     "String fieldLabel" : "Textarea"
488                                                                                 },
489                                                                                 {
490                                                                                     "String cls" : "has-success",
491                                                                                     "xtype" : "Input",
492                                                                                     "string placeholder" : "cls = has-success",
493                                                                                     "String fieldLabel" : "Input with Success",
494                                                                                     "$ xns" : "Roo.bootstrap"
495                                                                                 },
496                                                                                 {
497                                                                                     "String cls" : "has-warning",
498                                                                                     "xtype" : "Input",
499                                                                                     "string placeholder" : "cls = has-warning",
500                                                                                     "String fieldLabel" : "Input with Warning",
501                                                                                     "$ xns" : "Roo.bootstrap"
502                                                                                 },
503                                                                                 {
504                                                                                     "String cls" : "has-error",
505                                                                                     "xtype" : "Input",
506                                                                                     "string placeholder" : "cls = has-error",
507                                                                                     "String fieldLabel" : "Input with Error",
508                                                                                     "$ xns" : "Roo.bootstrap"
509                                                                                 },
510                                                                                 {
511                                                                                     "xtype" : "CheckBox",
512                                                                                     "String boxLabel" : "Checkbox 1",
513                                                                                     "$ xns" : "Roo.bootstrap"
514                                                                                 },
515                                                                                 {
516                                                                                     "Boolean checked" : true,
517                                                                                     "String weight" : "primary",
518                                                                                     "xtype" : "CheckBox",
519                                                                                     "String boxLabel" : "Checkbox weight=primary",
520                                                                                     "$ xns" : "Roo.bootstrap"
521                                                                                 },
522                                                                                 {
523                                                                                     "xtype" : "CheckBox",
524                                                                                     "String boxLabel" : "Checkbox Disabled",
525                                                                                     "Boolean disabled" : true,
526                                                                                     "$ xns" : "Roo.bootstrap"
527                                                                                 },
528                                                                                 {
529                                                                                     "xtype" : "Radio",
530                                                                                     "$ xns" : "Roo.bootstrap"
531                                                                                 }
532                                                                             ]
533                                                                         }
534                                                                     ]
535                                                                 }
536                                                             ]
537                                                         }
538                                                     ]
539                                                 }
540                                             ]
541                                         }
542                                     ]
543                                 }
544                             ]
545                         }
546                     ]
547                 }
548             ]
549         }
550     ]
551 }