examples/bootstrap/dashboard1.bjs.WI14LX
[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                                                                                 },
112                                                                                 {
113                                                                                     xtype : 'Input',
114                                                                                     placeholder : 'Enter password',
115                                                                                     inputType : 'password',
116                                                                                     fieldLabel : 'Password',
117                                                                                     xns : Roo.bootstrap
118                                                                                 },
119                                                                                 {
120                                                                                     xtype : 'Input',
121                                                                                     placeholder : 'Enter email',
122                                                                                     inputType : 'file',
123                                                                                     fieldLabel : 'File Input',
124                                                                                     xns : Roo.bootstrap
125                                                                                 },
126                                                                                 {
127                                                                                     xtype : 'Input',
128                                                                                     inputType : 'checkbox',
129                                                                                     xns : Roo.bootstrap,
130                                                                                     fieldLabel : 'Fixme - checkbox type'
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                                                                                             size : 'md'
367                                                                                         },
368                                                                                         {
369                                                                                             md : 6,
370                                                                                             xtype : 'Input',
371                                                                                             placeholder : 'md 4',
372                                                                                             xns : Roo.bootstrap,
373                                                                                             size : 'md'
374                                                                                         }
375                                                                                     ]
376
377                                                                                 }
378                                                                             ]
379
380                                                                         }
381                                                                     ]
382
383                                                                 }
384                                                             ]
385
386                                                         }
387                                                     ]
388
389                                                 }
390                                             ]
391
392                                         }
393                                     ]
394
395                                 }
396                             ]
397
398                         }
399                     ]
400
401                 }
402             ]
403
404         };    }
405 });