examples/bootstrap/dashboard1.bjs.NKS1LX
[roojs1] / examples / bootstrap / dashboard1.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 dashboard1 = new Roo.XComponent({
6     part     :  ["bootstrap", "dashboard1" ],
7     order    : '001-dashboard-',
8     region   : 'center',
9     parent   : false,
10     name     : "unnamed module",
11     disabled : false, 
12     permname : '', 
13     _tree : function()
14     {
15         var _this = this;
16         var MODULE = this;
17         return {
18             cls : 'skin-blue',
19             xtype : 'Body',
20             xns : Roo.bootstrap,
21             items : [
22                 Roo.apply(Dashboard.Header1._tree(), {
23                     cls : 'header',
24                     xtype : 'Container',
25                     tag : 'header',
26                     xns : Roo.bootstrap
27                 }),
28                 {
29                     cls : 'wrapper row-offcanvas row-offcanvas-left',
30                     xtype : 'Container',
31                     'flexy:include' : 'Sidebar.html',
32                     xns : Roo.bootstrap,
33                     items : [
34                         Roo.apply(Dashboard.Sidebar2._tree(), {
35                             tag : 'aside',
36                             cls : 'left-side sidebar-offcanvas',
37                             xtype : 'Container',
38                             xns : Roo.bootstrap
39                         }),
40                         {
41                             tag : 'aside',
42                             cls : 'right-side',
43                             xtype : 'Container',
44                             xns : Roo.bootstrap,
45                             items : [
46                                 {
47                                     tag : 'section',
48                                     cls : 'content-header',
49                                     xtype : 'Container',
50                                     xns : Roo.bootstrap,
51                                     items : [
52                                         {
53                                             xtype : 'Header',
54                                             xns : Roo.bootstrap,
55                                             html : 'General Form Elements  <small> Preview </small>'
56                                         }
57                                     ]
58
59                                 },
60                                 {
61                                     tag : 'section',
62                                     cls : 'content',
63                                     xtype : 'Container',
64                                     xns : Roo.bootstrap,
65                                     items : [
66                                         {
67                                             xtype : 'Row',
68                                             xns : Roo.bootstrap,
69                                             items : [
70                                                 {
71                                                     md : 6,
72                                                     xtype : 'Column',
73                                                     xns : Roo.bootstrap,
74                                                     sm : 12,
75                                                     items : [
76                                                         {
77                                                             cls : 'box box-primary',
78                                                             xtype : 'Container',
79                                                             xns : Roo.bootstrap,
80                                                             items : [
81                                                                 {
82                                                                     cls : 'box-header',
83                                                                     xtype : 'Container',
84                                                                     xns : Roo.bootstrap,
85                                                                     items : [
86                                                                         {
87                                                                             cls : 'box-title',
88                                                                             xtype : 'Header',
89                                                                             xns : Roo.bootstrap,
90                                                                             level : 3,
91                                                                             html : 'Quick Example'
92                                                                         }
93                                                                     ]
94
95                                                                 },
96                                                                 {
97                                                                     xtype : 'Form',
98                                                                     labelAlign : 'top',
99                                                                     xns : Roo.bootstrap,
100                                                                     items : [
101                                                                         {
102                                                                             cls : 'box-body',
103                                                                             xtype : 'Container',
104                                                                             xns : Roo.bootstrap,
105                                                                             items : [
106                                                                                 {
107                                                                                     xtype : 'Input',
108                                                                                     placeholder : 'Enter email',
109                                                                                     fieldLabel : 'Email Address',
110                                                                                     xns : Roo.bootstrap,
111                                                                                     vtype : 'email'
112                                                                                 },
113                                                                                 {
114                                                                                     xtype : 'Input',
115                                                                                     placeholder : 'Enter password',
116                                                                                     inputType : 'password',
117                                                                                     fieldLabel : 'Password',
118                                                                                     xns : Roo.bootstrap
119                                                                                 },
120                                                                                 {
121                                                                                     xtype : 'Input',
122                                                                                     placeholder : 'Enter email',
123                                                                                     inputType : 'file',
124                                                                                     fieldLabel : 'File Input',
125                                                                                     xns : Roo.bootstrap
126                                                                                 },
127                                                                                 {
128                                                                                     xtype : 'CheckBox',
129                                                                                     boxLabel : 'checkbox',
130                                                                                     xns : Roo.bootstrap
131                                                                                 },
132                                                                                 {
133                                                                                     weight : 'primary',
134                                                                                     xtype : 'Button',
135                                                                                     xns : Roo.bootstrap,
136                                                                                     html : 'Submit'
137                                                                                 }
138                                                                             ]
139
140                                                                         }
141                                                                     ]
142
143                                                                 }
144                                                             ]
145
146                                                         },
147                                                         {
148                                                             cls : 'box box-success',
149                                                             xtype : 'Container',
150                                                             xns : Roo.bootstrap,
151                                                             items : [
152                                                                 {
153                                                                     cls : 'box-header',
154                                                                     xtype : 'Container',
155                                                                     xns : Roo.bootstrap,
156                                                                     items : [
157                                                                         {
158                                                                             cls : 'box-title',
159                                                                             xtype : 'Header',
160                                                                             xns : Roo.bootstrap,
161                                                                             level : 3,
162                                                                             html : 'Different Height'
163                                                                         }
164                                                                     ]
165
166                                                                 },
167                                                                 {
168                                                                     xtype : 'Form',
169                                                                     labelAlign : 'top',
170                                                                     xns : Roo.bootstrap,
171                                                                     items : [
172                                                                         {
173                                                                             cls : 'box-body',
174                                                                             xtype : 'Container',
175                                                                             xns : Roo.bootstrap,
176                                                                             items : [
177                                                                                 {
178                                                                                     xtype : 'Input',
179                                                                                     placeholder : 'size lg',
180                                                                                     xns : Roo.bootstrap,
181                                                                                     size : 'lg'
182                                                                                 },
183                                                                                 {
184                                                                                     xtype : 'Input',
185                                                                                     placeholder : 'size md',
186                                                                                     xns : Roo.bootstrap,
187                                                                                     size : 'md'
188                                                                                 },
189                                                                                 {
190                                                                                     xtype : 'Input',
191                                                                                     placeholder : 'size sm',
192                                                                                     xns : Roo.bootstrap,
193                                                                                     size : 'sm'
194                                                                                 }
195                                                                             ]
196
197                                                                         }
198                                                                     ]
199
200                                                                 }
201                                                             ]
202
203                                                         },
204                                                         {
205                                                             cls : 'box box-danger',
206                                                             xtype : 'Container',
207                                                             xns : Roo.bootstrap,
208                                                             items : [
209                                                                 {
210                                                                     cls : 'box-header',
211                                                                     xtype : 'Container',
212                                                                     xns : Roo.bootstrap,
213                                                                     items : [
214                                                                         {
215                                                                             cls : 'box-title',
216                                                                             xtype : 'Header',
217                                                                             xns : Roo.bootstrap,
218                                                                             level : 3,
219                                                                             html : 'Different Width'
220                                                                         }
221                                                                     ]
222
223                                                                 },
224                                                                 {
225                                                                     xtype : 'Form',
226                                                                     labelAlign : 'top',
227                                                                     xns : Roo.bootstrap,
228                                                                     items : [
229                                                                         {
230                                                                             cls : 'box-body',
231                                                                             xtype : 'Container',
232                                                                             xns : Roo.bootstrap,
233                                                                             items : [
234                                                                                 {
235                                                                                     xtype : 'Row',
236                                                                                     xns : Roo.bootstrap,
237                                                                                     items : [
238                                                                                         {
239                                                                                             md : 3,
240                                                                                             xtype : 'Input',
241                                                                                             placeholder : 'md 3',
242                                                                                             xns : Roo.bootstrap,
243                                                                                             size : 'md'
244                                                                                         },
245                                                                                         {
246                                                                                             md : 3,
247                                                                                             xtype : 'Input',
248                                                                                             placeholder : 'md 4',
249                                                                                             xns : Roo.bootstrap,
250                                                                                             size : 'md'
251                                                                                         },
252                                                                                         {
253                                                                                             md : 5,
254                                                                                             xtype : 'Input',
255                                                                                             placeholder : 'md 3',
256                                                                                             xns : Roo.bootstrap,
257                                                                                             size : 'md'
258                                                                                         }
259                                                                                     ]
260
261                                                                                 }
262                                                                             ]
263
264                                                                         }
265                                                                     ]
266
267                                                                 }
268                                                             ]
269
270                                                         },
271                                                         {
272                                                             cls : 'box box-info',
273                                                             xtype : 'Container',
274                                                             xns : Roo.bootstrap,
275                                                             items : [
276                                                                 {
277                                                                     cls : 'box-header',
278                                                                     xtype : 'Container',
279                                                                     xns : Roo.bootstrap,
280                                                                     items : [
281                                                                         {
282                                                                             cls : 'box-title',
283                                                                             xtype : 'Header',
284                                                                             xns : Roo.bootstrap,
285                                                                             level : 3,
286                                                                             html : 'Input Addon'
287                                                                         }
288                                                                     ]
289
290                                                                 },
291                                                                 {
292                                                                     xtype : 'Form',
293                                                                     labelAlign : 'top',
294                                                                     xns : Roo.bootstrap,
295                                                                     items : [
296                                                                         {
297                                                                             cls : 'box-body',
298                                                                             xtype : 'Container',
299                                                                             xns : Roo.bootstrap,
300                                                                             items : [
301                                                                                 {
302                                                                                     xtype : 'Input',
303                                                                                     placeholder : 'before : @',
304                                                                                     xns : Roo.bootstrap,
305                                                                                     before : '@',
306                                                                                     size : 'md'
307                                                                                 },
308                                                                                 {
309                                                                                     xtype : 'Input',
310                                                                                     placeholder : 'after: .00',
311                                                                                     xns : Roo.bootstrap,
312                                                                                     size : 'md',
313                                                                                     after : 0
314                                                                                 },
315                                                                                 {
316                                                                                     xtype : 'Input',
317                                                                                     placeholder : 'before $, after: .00',
318                                                                                     xns : Roo.bootstrap,
319                                                                                     before : '$',
320                                                                                     size : 'md',
321                                                                                     after : 0
322                                                                                 },
323                                                                                 {
324                                                                                     xtype : 'Header',
325                                                                                     xns : Roo.bootstrap,
326                                                                                     level : 4,
327                                                                                     html : 'With Icons'
328                                                                                 },
329                                                                                 {
330                                                                                     xtype : 'Input',
331                                                                                     placeholder : 'before : &lt;i class=&quot;fa fa-envelope&quot;&gt;&lt;/i&gt;',
332                                                                                     xns : Roo.bootstrap,
333                                                                                     before : '<i class=\"fa fa-envelope\"></i>',
334                                                                                     size : 'md'
335                                                                                 },
336                                                                                 {
337                                                                                     xtype : 'Input',
338                                                                                     placeholder : 'after : &lt;i class=&quot;fa fa-after&quot;&gt;&lt;/i&gt;',
339                                                                                     xns : Roo.bootstrap,
340                                                                                     size : 'md',
341                                                                                     after : '<i class=\"fa fa-check\"></i>'
342                                                                                 },
343                                                                                 {
344                                                                                     xtype : 'Input',
345                                                                                     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;',
346                                                                                     xns : Roo.bootstrap,
347                                                                                     before : '<i class=\"fa fa-dollar\"></i>',
348                                                                                     size : 'md',
349                                                                                     after : '<i class=\"fa fa-ambulance\"></i>'
350                                                                                 },
351                                                                                 {
352                                                                                     xtype : 'Header',
353                                                                                     level : 4,
354                                                                                     xns : Roo.bootstrap,
355                                                                                     html : 'With checkbox and radio'
356                                                                                 },
357                                                                                 {
358                                                                                     xtype : 'Row',
359                                                                                     xns : Roo.bootstrap,
360                                                                                     items : [
361                                                                                         {
362                                                                                             md : 6,
363                                                                                             xtype : 'Input',
364                                                                                             placeholder : '?',
365                                                                                             xns : Roo.bootstrap,
366                                                                                             before : 'fixme',
367                                                                                             size : 'md'
368                                                                                         },
369                                                                                         {
370                                                                                             md : 6,
371                                                                                             xtype : 'Input',
372                                                                                             placeholder : 'md 4',
373                                                                                             xns : Roo.bootstrap,
374                                                                                             size : 'md'
375                                                                                         }
376                                                                                     ]
377
378                                                                                 },
379                                                                                 {
380                                                                                     xtype : 'Header',
381                                                                                     xns : Roo.bootstrap,
382                                                                                     level : 4,
383                                                                                     html : 'With buttons'
384                                                                                 },
385                                                                                 {
386                                                                                     before : {
387                                                                                         menu : {
388                                                                                             xtype : 'Menu',
389                                                                                             xns : Roo.bootstrap,
390                                                                                             items : [
391                                                                                                 {
392                                                                                                     xtype : 'MenuItem',
393                                                                                                     xns : Roo.bootstrap,
394                                                                                                     html : 'http://',
395                                                                                                     listeners : {
396                                                                                                         click : function (e)
397                                                                                                            {
398                                                                                                                _this.httpButton.setText("http://");
399                                                                                                            }
400                                                                                                     }
401                                                                                                 },
402                                                                                                 {
403                                                                                                     xtype : 'MenuItem',
404                                                                                                     xns : Roo.bootstrap,
405                                                                                                     html : 'https://',
406                                                                                                     listeners : {
407                                                                                                         click : function (e)
408                                                                                                            {
409                                                                                                                _this.httpButton.setText("https://");
410                                                                                                            }
411                                                                                                     }
412                                                                                                 }
413                                                                                             ]
414
415                                                                                         },
416                                                                                         weight : 'primary',
417                                                                                         xtype : 'Button',
418                                                                                         xns : Roo.bootstrap,
419                                                                                         html : 'http://',
420                                                                                         listeners : {
421                                                                                                 render : function (_self)
422                                                                                                    {
423                                                                                                        _this.httpButton = _self;
424                                                                                                    }
425                                                                                         },
426                                                                                         items : [
427
428                                                                                         ]
429
430                                                                                     },
431                                                                                     xtype : 'Input',
432                                                                                     placeholder : 'before :  - an object...    ',
433                                                                                     xns : Roo.bootstrap,
434                                                                                     size : 'md',
435                                                                                     items : [
436
437                                                                                     ]
438
439                                                                                 },
440                                                                                 {
441                                                                                     after : {
442                                                                                         weight : 'success',
443                                                                                         xtype : 'Button',
444                                                                                         xns : Roo.bootstrap,
445                                                                                         html : 'Go'
446                                                                                     },
447                                                                                     xtype : 'Input',
448                                                                                     placeholder : 'after - a button',
449                                                                                     xns : Roo.bootstrap,
450                                                                                     size : 'md',
451                                                                                     items : [
452
453                                                                                     ]
454
455                                                                                 }
456                                                                             ]
457
458                                                                         }
459                                                                     ]
460
461                                                                 }
462                                                             ]
463
464                                                         }
465                                                     ]
466
467                                                 },
468                                                 {
469                                                     md : 6,
470                                                     xtype : 'Column',
471                                                     xns : Roo.bootstrap,
472                                                     sm : 12,
473                                                     items : [
474                                                         {
475                                                             cls : 'box box-warning',
476                                                             xtype : 'Container',
477                                                             xns : Roo.bootstrap,
478                                                             items : [
479                                                                 {
480                                                                     cls : 'box-header',
481                                                                     xtype : 'Container',
482                                                                     xns : Roo.bootstrap,
483                                                                     items : [
484                                                                         {
485                                                                             cls : 'box-title',
486                                                                             xtype : 'Header',
487                                                                             xns : Roo.bootstrap,
488                                                                             level : 3,
489                                                                             html : 'General Elements'
490                                                                         }
491                                                                     ]
492
493                                                                 },
494                                                                 {
495                                                                     xtype : 'Form',
496                                                                     labelAlign : 'top',
497                                                                     xns : Roo.bootstrap,
498                                                                     items : [
499                                                                         {
500                                                                             cls : 'box-body',
501                                                                             xtype : 'Container',
502                                                                             xns : Roo.bootstrap,
503                                                                             items : [
504                                                                                 {
505                                                                                     xtype : 'Input',
506                                                                                     placeholder : 'Enter ...',
507                                                                                     fieldLabel : 'Text',
508                                                                                     xns : Roo.bootstrap
509                                                                                 },
510                                                                                 {
511                                                                                     xtype : 'Input',
512                                                                                     placeholder : 'disabled = true',
513                                                                                     disabled : true,
514                                                                                     fieldLabel : 'Text',
515                                                                                     xns : Roo.bootstrap
516                                                                                 },
517                                                                                 {
518                                                                                     xtype : 'TextArea',
519                                                                                     xns : Roo.bootstrap,
520                                                                                     fieldLabel : 'Textarea'
521                                                                                 },
522                                                                                 {
523                                                                                     xtype : 'TextArea',
524                                                                                     placeholder : 'disabled=true',
525                                                                                     disabled : true,
526                                                                                     xns : Roo.bootstrap,
527                                                                                     fieldLabel : 'Textarea'
528                                                                                 },
529                                                                                 {
530                                                                                     cls : 'has-success',
531                                                                                     xtype : 'Input',
532                                                                                     placeholder : 'cls = has-success',
533                                                                                     fieldLabel : 'Input with Success',
534                                                                                     xns : Roo.bootstrap
535                                                                                 },
536                                                                                 {
537                                                                                     cls : 'has-warning',
538                                                                                     xtype : 'Input',
539                                                                                     placeholder : 'cls = has-warning',
540                                                                                     fieldLabel : 'Input with Warning',
541                                                                                     xns : Roo.bootstrap
542                                                                                 },
543                                                                                 {
544                                                                                     cls : 'has-error',
545                                                                                     xtype : 'Input',
546                                                                                     placeholder : 'cls = has-error',
547                                                                                     fieldLabel : 'Input with Error',
548                                                                                     xns : Roo.bootstrap
549                                                                                 },
550                                                                                 {
551                                                                                     xtype : 'CheckBox',
552                                                                                     boxLabel : 'Checkbox 1',
553                                                                                     xns : Roo.bootstrap
554                                                                                 },
555                                                                                 {
556                                                                                     weight : 'primary',
557                                                                                     xtype : 'CheckBox',
558                                                                                     boxLabel : 'Checkbox 2',
559                                                                                     xns : Roo.bootstrap
560                                                                                 },
561                                                                                 {
562                                                                                     xtype : 'CheckBox',
563                                                                                     boxLabel : 'Checkbox Disabled',
564                                                                                     disabled : true,
565                                                                                     xns : Roo.bootstrap
566                                                                                 }
567                                                                             ]
568
569                                                                         }
570                                                                     ]
571
572                                                                 }
573                                                             ]
574
575                                                         }
576                                                     ]
577
578                                                 }
579                                             ]
580
581                                         }
582                                     ]
583
584                                 }
585                             ]
586
587                         }
588                     ]
589
590                 }
591             ]
592
593         };    }
594 });