examples/bootstrap/dashboard1.bjs.R8J2LX
[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" : "Input",
121                                                                                     "String inputType" : "checkbox",
122                                                                                     "$ xns" : "Roo.bootstrap",
123                                                                                     "String fieldLabel" : "Fixme - checkbox type"
124                                                                                 },
125                                                                                 {
126                                                                                     "String weight" : "primary",
127                                                                                     "xtype" : "Button",
128                                                                                     "$ xns" : "Roo.bootstrap",
129                                                                                     "String html" : "Submit"
130                                                                                 }
131                                                                             ]
132                                                                         }
133                                                                     ]
134                                                                 }
135                                                             ]
136                                                         },
137                                                         {
138                                                             "String cls" : "box box-success",
139                                                             "xtype" : "Container",
140                                                             "$ xns" : "Roo.bootstrap",
141                                                             "items" : [
142                                                                 {
143                                                                     "String cls" : "box-header",
144                                                                     "xtype" : "Container",
145                                                                     "$ xns" : "Roo.bootstrap",
146                                                                     "items" : [
147                                                                         {
148                                                                             "String cls" : "box-title",
149                                                                             "xtype" : "Header",
150                                                                             "$ xns" : "Roo.bootstrap",
151                                                                             "Number level" : 3,
152                                                                             "String html" : "Different Height"
153                                                                         }
154                                                                     ]
155                                                                 },
156                                                                 {
157                                                                     "xtype" : "Form",
158                                                                     "String labelAlign" : "top",
159                                                                     "$ xns" : "Roo.bootstrap",
160                                                                     "items" : [
161                                                                         {
162                                                                             "String cls" : "box-body",
163                                                                             "xtype" : "Container",
164                                                                             "$ xns" : "Roo.bootstrap",
165                                                                             "items" : [
166                                                                                 {
167                                                                                     "xtype" : "Input",
168                                                                                     "string placeholder" : "size lg",
169                                                                                     "$ xns" : "Roo.bootstrap",
170                                                                                     "string size" : "lg"
171                                                                                 },
172                                                                                 {
173                                                                                     "xtype" : "Input",
174                                                                                     "string placeholder" : "size md",
175                                                                                     "$ xns" : "Roo.bootstrap",
176                                                                                     "string size" : "md"
177                                                                                 },
178                                                                                 {
179                                                                                     "xtype" : "Input",
180                                                                                     "string placeholder" : "size sm",
181                                                                                     "$ xns" : "Roo.bootstrap",
182                                                                                     "string size" : "sm"
183                                                                                 }
184                                                                             ]
185                                                                         }
186                                                                     ]
187                                                                 }
188                                                             ]
189                                                         },
190                                                         {
191                                                             "String cls" : "box box-danger",
192                                                             "xtype" : "Container",
193                                                             "$ xns" : "Roo.bootstrap",
194                                                             "items" : [
195                                                                 {
196                                                                     "String cls" : "box-header",
197                                                                     "xtype" : "Container",
198                                                                     "$ xns" : "Roo.bootstrap",
199                                                                     "items" : [
200                                                                         {
201                                                                             "String cls" : "box-title",
202                                                                             "xtype" : "Header",
203                                                                             "$ xns" : "Roo.bootstrap",
204                                                                             "Number level" : 3,
205                                                                             "String html" : "Different Width"
206                                                                         }
207                                                                     ]
208                                                                 },
209                                                                 {
210                                                                     "xtype" : "Form",
211                                                                     "String labelAlign" : "top",
212                                                                     "$ xns" : "Roo.bootstrap",
213                                                                     "items" : [
214                                                                         {
215                                                                             "String cls" : "box-body",
216                                                                             "xtype" : "Container",
217                                                                             "$ xns" : "Roo.bootstrap",
218                                                                             "items" : [
219                                                                                 {
220                                                                                     "xtype" : "Row",
221                                                                                     "$ xns" : "Roo.bootstrap",
222                                                                                     "items" : [
223                                                                                         {
224                                                                                             "Number md" : 3,
225                                                                                             "xtype" : "Input",
226                                                                                             "string placeholder" : "md 3",
227                                                                                             "$ xns" : "Roo.bootstrap",
228                                                                                             "string size" : "md"
229                                                                                         },
230                                                                                         {
231                                                                                             "Number md" : 3,
232                                                                                             "xtype" : "Input",
233                                                                                             "string placeholder" : "md 4",
234                                                                                             "$ xns" : "Roo.bootstrap",
235                                                                                             "string size" : "md"
236                                                                                         },
237                                                                                         {
238                                                                                             "Number md" : 5,
239                                                                                             "xtype" : "Input",
240                                                                                             "string placeholder" : "md 3",
241                                                                                             "$ xns" : "Roo.bootstrap",
242                                                                                             "string size" : "md"
243                                                                                         }
244                                                                                     ]
245                                                                                 }
246                                                                             ]
247                                                                         }
248                                                                     ]
249                                                                 }
250                                                             ]
251                                                         },
252                                                         {
253                                                             "String cls" : "box box-info",
254                                                             "xtype" : "Container",
255                                                             "$ xns" : "Roo.bootstrap",
256                                                             "items" : [
257                                                                 {
258                                                                     "String cls" : "box-header",
259                                                                     "xtype" : "Container",
260                                                                     "$ xns" : "Roo.bootstrap",
261                                                                     "items" : [
262                                                                         {
263                                                                             "String cls" : "box-title",
264                                                                             "xtype" : "Header",
265                                                                             "$ xns" : "Roo.bootstrap",
266                                                                             "Number level" : 3,
267                                                                             "String html" : "Input Addon"
268                                                                         }
269                                                                     ]
270                                                                 },
271                                                                 {
272                                                                     "xtype" : "Form",
273                                                                     "String labelAlign" : "top",
274                                                                     "$ xns" : "Roo.bootstrap",
275                                                                     "items" : [
276                                                                         {
277                                                                             "String cls" : "box-body",
278                                                                             "xtype" : "Container",
279                                                                             "$ xns" : "Roo.bootstrap",
280                                                                             "items" : [
281                                                                                 {
282                                                                                     "xtype" : "Input",
283                                                                                     "string placeholder" : "before : @",
284                                                                                     "$ xns" : "Roo.bootstrap",
285                                                                                     "string before" : "@",
286                                                                                     "string size" : "md"
287                                                                                 },
288                                                                                 {
289                                                                                     "xtype" : "Input",
290                                                                                     "string placeholder" : "after: .00",
291                                                                                     "$ xns" : "Roo.bootstrap",
292                                                                                     "string size" : "md",
293                                                                                     "string after" : 0
294                                                                                 },
295                                                                                 {
296                                                                                     "xtype" : "Input",
297                                                                                     "string placeholder" : "before $, after: .00",
298                                                                                     "$ xns" : "Roo.bootstrap",
299                                                                                     "string before" : "$",
300                                                                                     "string size" : "md",
301                                                                                     "string after" : 0
302                                                                                 },
303                                                                                 {
304                                                                                     "xtype" : "Header",
305                                                                                     "$ xns" : "Roo.bootstrap",
306                                                                                     "Number level" : 4,
307                                                                                     "String html" : "With Icons"
308                                                                                 },
309                                                                                 {
310                                                                                     "xtype" : "Input",
311                                                                                     "string placeholder" : "before : &lt;i class=&quot;fa fa-envelope&quot;&gt;&lt;/i&gt;",
312                                                                                     "$ xns" : "Roo.bootstrap",
313                                                                                     "string before" : "<i class=\"fa fa-envelope\"></i>",
314                                                                                     "string size" : "md"
315                                                                                 },
316                                                                                 {
317                                                                                     "xtype" : "Input",
318                                                                                     "string placeholder" : "after : &lt;i class=&quot;fa fa-after&quot;&gt;&lt;/i&gt;",
319                                                                                     "$ xns" : "Roo.bootstrap",
320                                                                                     "string size" : "md",
321                                                                                     "string after" : "<i class=\"fa fa-check\"></i>"
322                                                                                 },
323                                                                                 {
324                                                                                     "xtype" : "Input",
325                                                                                     "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;",
326                                                                                     "$ xns" : "Roo.bootstrap",
327                                                                                     "string before" : "<i class=\"fa fa-dollar\"></i>",
328                                                                                     "string size" : "md",
329                                                                                     "string after" : "<i class=\"fa fa-ambulance\"></i>"
330                                                                                 },
331                                                                                 {
332                                                                                     "xtype" : "Header",
333                                                                                     "Number level" : 4,
334                                                                                     "$ xns" : "Roo.bootstrap",
335                                                                                     "String html" : "With checkbox and radio"
336                                                                                 },
337                                                                                 {
338                                                                                     "xtype" : "Row",
339                                                                                     "$ xns" : "Roo.bootstrap",
340                                                                                     "items" : [
341                                                                                         {
342                                                                                             "Number md" : 6,
343                                                                                             "xtype" : "Input",
344                                                                                             "string placeholder" : "?",
345                                                                                             "$ xns" : "Roo.bootstrap",
346                                                                                             "string before" : "fixme",
347                                                                                             "string size" : "md"
348                                                                                         },
349                                                                                         {
350                                                                                             "Number md" : 6,
351                                                                                             "xtype" : "Input",
352                                                                                             "string placeholder" : "md 4",
353                                                                                             "$ xns" : "Roo.bootstrap",
354                                                                                             "string size" : "md"
355                                                                                         }
356                                                                                     ]
357                                                                                 },
358                                                                                 {
359                                                                                     "xtype" : "Header",
360                                                                                     "$ xns" : "Roo.bootstrap",
361                                                                                     "Number level" : 4,
362                                                                                     "String html" : "With buttons"
363                                                                                 },
364                                                                                 {
365                                                                                     "xtype" : "Input",
366                                                                                     "string placeholder" : "before :  - an object...    ",
367                                                                                     "$ xns" : "Roo.bootstrap",
368                                                                                     "string size" : "md",
369                                                                                     "items" : [
370                                                                                         {
371                                                                                             "listeners" : {
372                                                                                                 "render" : "function (_self)\n{\n    _this.httpButton = _self;\n}"
373                                                                                             },
374                                                                                             "String weight" : "primary",
375                                                                                             "xtype" : "Button",
376                                                                                             "$ xns" : "Roo.bootstrap",
377                                                                                             "String html" : "http://",
378                                                                                             "* prop" : "before",
379                                                                                             "items" : [
380                                                                                                 {
381                                                                                                     "xtype" : "Menu",
382                                                                                                     "$ xns" : "Roo.bootstrap",
383                                                                                                     "* prop" : "menu",
384                                                                                                     "items" : [
385                                                                                                         {
386                                                                                                             "listeners" : {
387                                                                                                                 "click" : "function (e)\n{\n    _this.httpButton.setText(\"http://\");\n}"
388                                                                                                             },
389                                                                                                             "xtype" : "MenuItem",
390                                                                                                             "$ xns" : "Roo.bootstrap",
391                                                                                                             "String html" : "http://"
392                                                                                                         },
393                                                                                                         {
394                                                                                                             "listeners" : {
395                                                                                                                 "click" : "function (e)\n{\n    _this.httpButton.setText(\"https://\");\n}"
396                                                                                                             },
397                                                                                                             "xtype" : "MenuItem",
398                                                                                                             "$ xns" : "Roo.bootstrap",
399                                                                                                             "String html" : "https://"
400                                                                                                         }
401                                                                                                     ]
402                                                                                                 }
403                                                                                             ]
404                                                                                         }
405                                                                                     ]
406                                                                                 },
407                                                                                 {
408                                                                                     "xtype" : "Input",
409                                                                                     "string placeholder" : "after - a button",
410                                                                                     "$ xns" : "Roo.bootstrap",
411                                                                                     "string size" : "md",
412                                                                                     "items" : [
413                                                                                         {
414                                                                                             "String weight" : "success",
415                                                                                             "xtype" : "Button",
416                                                                                             "$ xns" : "Roo.bootstrap",
417                                                                                             "String html" : "Go",
418                                                                                             "* prop" : "after"
419                                                                                         }
420                                                                                     ]
421                                                                                 }
422                                                                             ]
423                                                                         }
424                                                                     ]
425                                                                 }
426                                                             ]
427                                                         }
428                                                     ]
429                                                 },
430                                                 {
431                                                     "Number md" : 6,
432                                                     "xtype" : "Column",
433                                                     "$ xns" : "Roo.bootstrap",
434                                                     "Number sm" : 12,
435                                                     "items" : [
436                                                         {
437                                                             "String cls" : "box box-warning",
438                                                             "xtype" : "Container",
439                                                             "$ xns" : "Roo.bootstrap",
440                                                             "items" : [
441                                                                 {
442                                                                     "String cls" : "box-header",
443                                                                     "xtype" : "Container",
444                                                                     "$ xns" : "Roo.bootstrap",
445                                                                     "items" : [
446                                                                         {
447                                                                             "String cls" : "box-title",
448                                                                             "xtype" : "Header",
449                                                                             "$ xns" : "Roo.bootstrap",
450                                                                             "Number level" : 3,
451                                                                             "String html" : "General Elements"
452                                                                         }
453                                                                     ]
454                                                                 },
455                                                                 {
456                                                                     "xtype" : "Form",
457                                                                     "String labelAlign" : "top",
458                                                                     "$ xns" : "Roo.bootstrap",
459                                                                     "items" : [
460                                                                         {
461                                                                             "String cls" : "box-body",
462                                                                             "xtype" : "Container",
463                                                                             "$ xns" : "Roo.bootstrap",
464                                                                             "items" : [
465                                                                                 {
466                                                                                     "xtype" : "Input",
467                                                                                     "string placeholder" : "Enter ...",
468                                                                                     "String fieldLabel" : "Text",
469                                                                                     "$ xns" : "Roo.bootstrap"
470                                                                                 },
471                                                                                 {
472                                                                                     "xtype" : "Input",
473                                                                                     "string placeholder" : "disabled = true",
474                                                                                     "Boolean disabled" : true,
475                                                                                     "String fieldLabel" : "Text",
476                                                                                     "$ xns" : "Roo.bootstrap"
477                                                                                 },
478                                                                                 {
479                                                                                     "xtype" : "TextArea",
480                                                                                     "$ xns" : "Roo.bootstrap",
481                                                                                     "String fieldLabel" : "Textarea"
482                                                                                 },
483                                                                                 {
484                                                                                     "xtype" : "TextArea",
485                                                                                     "string placeholder" : "disabled=true",
486                                                                                     "Boolean disabled" : true,
487                                                                                     "$ xns" : "Roo.bootstrap",
488                                                                                     "String fieldLabel" : "Textarea"
489                                                                                 },
490                                                                                 {
491                                                                                     "String cls" : "has-success",
492                                                                                     "xtype" : "Input",
493                                                                                     "string placeholder" : "Enter ...",
494                                                                                     "String fieldLabel" : "Text",
495                                                                                     "$ xns" : "Roo.bootstrap"
496                                                                                 }
497                                                                             ]
498                                                                         }
499                                                                     ]
500                                                                 }
501                                                             ]
502                                                         }
503                                                     ]
504                                                 }
505                                             ]
506                                         }
507                                     ]
508                                 }
509                             ]
510                         }
511                     ]
512                 }
513             ]
514         }
515     ]
516 }