1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 dashboard3 = new Roo.XComponent({
6 part : ["bootstrap", "dashboard3" ],
7 order : '001-dashboard-',
10 name : "unnamed module",
18 '|xns' : 'Roo.bootstrap',
23 Roo.apply(Dashboard.Header1._tree(), {
24 '|xns' : 'Roo.bootstrap',
31 '|xns' : 'Roo.bootstrap',
32 cls : 'wrapper row-offcanvas row-offcanvas-left',
34 'flexy:include' : 'Sidebar.html',
37 Roo.apply(Dashboard.Sidebar2._tree(), {
38 '|xns' : 'Roo.bootstrap',
40 cls : 'left-side sidebar-offcanvas',
45 '|xns' : 'Roo.bootstrap',
52 '|xns' : 'Roo.bootstrap',
54 cls : 'content-header',
59 '|xns' : 'Roo.bootstrap',
62 html : 'Dashboard <small> Control panel </small>'
68 '|xns' : 'Roo.bootstrap',
75 '|xns' : 'Roo.bootstrap',
80 '|xns' : 'Roo.bootstrap',
87 '|xns' : 'Roo.bootstrap.dash',
92 xns : Roo.bootstrap.dash,
102 '|xns' : 'Roo.bootstrap',
109 '|xns' : 'Roo.bootstrap.dash',
114 xns : Roo.bootstrap.dash,
116 title : "New Orders",
124 '|xns' : 'Roo.bootstrap',
131 '|xns' : 'Roo.bootstrap.dash',
135 xns : Roo.bootstrap.dash,
137 title : "New Orders",
145 '|xns' : 'Roo.bootstrap',
152 '|xns' : 'Roo.bootstrap.dash',
156 xns : Roo.bootstrap.dash,
158 title : "New Orders",
169 '|xns' : 'Roo.bootstrap',
174 '|xns' : 'Roo.bootstrap',
183 '|xns' : 'Roo.bootstrap.dash',
185 xns : Roo.bootstrap.dash,
188 render : function (_self)
190 _this.testbox = _self;
195 '|xns' : 'Roo.bootstrap.dash',
197 xns : Roo.bootstrap.dash,
201 '|xns' : 'Roo.bootstrap',
209 [ 'A TEST', '1', '0' ],
211 [ 'B test', '1', '0' ],
212 [ 'C test', '1', '0' ],
213 [ 'D test', '1', '0' ]
216 fields : [ 'display_name', 'current', 'aspire' ],
217 xtype : 'SimpleStore',
220 '|xns' : 'Roo.bootstrap',
222 CellSelection : true,
228 header : 'Department',
229 dataIndex : 'display_name',
230 xtype : 'ColumnModel',
236 dataIndex : 'current',
237 xtype : 'ColumnModel',
239 renderer : function(v) {
241 var state = v> 0 ? '-checked' : '';
243 return v*1 > 0 ? 'X' : '-';
250 dataIndex : 'aspire',
251 xtype : 'ColumnModel',
253 renderer : function(v) {
254 var state = v> 0 ? '-checked' : '';
255 return v*1 > 0 ? 'X' : '-';
260 cellclick : function (_self, el, rowIndex, columnIndex, e)
264 var cm = this.colModel.getColumnById(this.colModel.getColumnId(columnIndex));
265 if (cm.dataIndex == 'current') {
266 var rec = _this.listTable.ds.getAt(rowIndex);
268 rec.set('current', rec.data.current * 1 ? '0' : '1');
270 //_this.listTable.ds.fireEvent("datachanged", this);
274 if (cm.dataIndex == 'aspire') {
275 var rec = _this.listTable.ds.getAt(rowIndex);
277 rec.set('aspire', rec.data.aspire * 1 ? '0' : '1');
279 //_this.listTable.ds.fireEvent("datachanged", this);
286 render : function (_self)
288 _this.listTable = _self;
289 (function() { _self.store.load({}); }).defer(100)
304 '|xns' : 'Roo.bootstrap.dash',
306 xns : Roo.bootstrap.dash,
310 '|xns' : 'Roo.bootstrap',
313 html : 'tab 2 content'
325 '|xns' : 'Roo.bootstrap',
334 '|xns' : 'Roo.bootstrap',
335 cls : 'nav-tabs-custom',
340 '|xns' : 'Roo.bootstrap',
344 style : 'margin: 10,10,0,0'
356 '|xns' : 'Roo.bootstrap',
361 '|xns' : 'Roo.bootstrap',
369 '|xns' : 'Roo.bootstrap',
371 cls : 'carousel slide',
377 render : function (_self)
379 _this.tab_first = _self;
384 '|xns' : 'Roo.bootstrap',
391 '|xns' : 'Roo.bootstrap',
392 cls : 'carousel-inner',
396 style : 'padding-left:50px;padding-right:50px;',
399 '|xns' : 'Roo.bootstrap',
404 '|xns' : 'Roo.bootstrap',
410 '|xns' : 'Roo.bootstrap',
412 fieldLabel : 'This is a label',
416 name : 'chosen_title'
428 '|xns' : 'Roo.bootstrap',
429 cls : 'carousel-control left',
430 preventDefault : true,
433 html : '<span class=\"glyphicon glyphicon-chevron-left\"></span>'
436 '|xns' : 'Roo.bootstrap',
437 cls : 'carousel-control right',
438 preventDefault : true,
441 html : '<span class=\"glyphicon glyphicon-chevron-right\"></span>',
445 _this.tab_first.setActive(false);
446 _this.tab_second.setActive(true);
454 '|xns' : 'Roo.bootstrap',
456 cls : 'carousel slide',
462 render : function (_self)
464 _this.tab_second = _self;
469 '|xns' : 'Roo.bootstrap',
476 '|xns' : 'Roo.bootstrap',
477 cls : 'carousel-inner',
481 style : 'padding-left:50px;padding-right:50px;',
484 '|xns' : 'Roo.bootstrap',
489 '|xns' : 'Roo.bootstrap',
495 '|xns' : 'Roo.bootstrap',
497 fieldLabel : 'Some input',
501 name : 'chosen_title'
513 '|xns' : 'Roo.bootstrap',
514 cls : 'carousel-control left',
517 html : '<span class=\"glyphicon glyphicon-chevron-left\"></span>'
520 '|xns' : 'Roo.bootstrap',
521 cls : 'carousel-control right',
524 html : '<span class=\"glyphicon glyphicon-chevron-right\"></span>'