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