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> Example 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,
94 title : "New Orders ",
97 _aformat : 'This is a random string'
103 '|xns' : 'Roo.bootstrap',
110 '|xns' : 'Roo.bootstrap.dash',
115 xns : Roo.bootstrap.dash,
117 title : "New Orders",
125 '|xns' : 'Roo.bootstrap',
132 '|xns' : 'Roo.bootstrap.dash',
136 xns : Roo.bootstrap.dash,
138 title : "New Orders",
146 '|xns' : 'Roo.bootstrap',
153 '|xns' : 'Roo.bootstrap.dash',
157 xns : Roo.bootstrap.dash,
159 title : "New Orders",
170 '|xns' : 'Roo.bootstrap',
175 '|xns' : 'Roo.bootstrap',
180 html : '<b> Alert </b> test allert\n'
186 '|xns' : 'Roo.bootstrap',
191 '|xns' : 'Roo.bootstrap',
200 '|xns' : 'Roo.bootstrap.dash',
202 xns : Roo.bootstrap.dash,
205 render : function (_self)
207 _this.testbox = _self;
212 '|xns' : 'Roo.bootstrap.dash',
214 xns : Roo.bootstrap.dash,
218 '|xns' : 'Roo.bootstrap',
225 fields : [ 'display_name', 'current', 'aspire' ],
227 [ 'A TEST', '1', '0' ],
229 [ 'B test', '1', '0' ],
230 [ 'C test', '1', '0' ],
231 [ 'D test', '1', '0' ]
234 xtype : 'SimpleStore',
237 '|xns' : 'Roo.bootstrap',
239 CellSelection : true,
245 header : 'Department',
246 dataIndex : 'display_name',
247 xtype : 'ColumnModel',
253 dataIndex : 'current',
254 xtype : 'ColumnModel',
256 renderer : function(v) {
258 var state = v> 0 ? '-checked' : '';
260 return v*1 > 0 ? 'X' : '-';
267 dataIndex : 'aspire',
268 xtype : 'ColumnModel',
270 renderer : function(v) {
271 var state = v> 0 ? '-checked' : '';
272 return v*1 > 0 ? 'X' : '-';
277 cellclick : function (_self, el, rowIndex, columnIndex, e)
281 var cm = this.colModel.getColumnById(this.colModel.getColumnId(columnIndex));
282 if (cm.dataIndex == 'current') {
283 var rec = _this.listTable.ds.getAt(rowIndex);
285 rec.set('current', rec.data.current * 1 ? '0' : '1');
287 //_this.listTable.ds.fireEvent("datachanged", this);
291 if (cm.dataIndex == 'aspire') {
292 var rec = _this.listTable.ds.getAt(rowIndex);
294 rec.set('aspire', rec.data.aspire * 1 ? '0' : '1');
296 //_this.listTable.ds.fireEvent("datachanged", this);
303 render : function (_self)
305 _this.listTable = _self;
306 (function() { _self.store.load({}); }).defer(100)
321 '|xns' : 'Roo.bootstrap.dash',
323 xns : Roo.bootstrap.dash,
327 '|xns' : 'Roo.bootstrap',
330 html : 'tab 2 content'
342 '|xns' : 'Roo.bootstrap',
351 '|xns' : 'Roo.bootstrap',
352 cls : 'nav-tabs-custom',
357 '|xns' : 'Roo.bootstrap',
361 style : 'margin: 10,10,0,0'
373 '|xns' : 'Roo.bootstrap',
378 '|xns' : 'Roo.bootstrap',
385 render : function (_self)
387 _this.tabgroup = _self;
392 '|xns' : 'Roo.bootstrap',
400 render : function (_self)
402 _this.tab_second = _self;
407 '|xns' : 'Roo.bootstrap',
414 '|xns' : 'Roo.bootstrap',
418 style : 'padding-left:50px;padding-right:50px;',
421 '|xns' : 'Roo.bootstrap',
426 '|xns' : 'Roo.bootstrap',
432 '|xns' : 'Roo.bootstrap',
434 fieldLabel : 'Some input',
438 name : 'chosen_title'
453 '|xns' : 'Roo.bootstrap',
461 render : function (_self)
463 _this.tab_first = _self;
468 '|xns' : 'Roo.bootstrap',
475 '|xns' : 'Roo.bootstrap',
479 style : 'padding-left:50px;padding-right:50px;',
482 '|xns' : 'Roo.bootstrap',
487 '|xns' : 'Roo.bootstrap',
493 '|xns' : 'Roo.bootstrap',
495 fieldLabel : 'This is a label',
499 name : 'chosen_title'
514 '|xns' : 'Roo.bootstrap',
515 cls : 'carousel-control left',
516 preventDefault : true,
519 html : '<span class=\"glyphicon glyphicon-chevron-left\"></span>',
523 _this.tabgroup.showPanelPrev();
528 '|xns' : 'Roo.bootstrap',
529 cls : 'carousel-control right',
530 preventDefault : true,
533 html : '<span class=\"glyphicon glyphicon-chevron-right\"></span>',
537 _this.tabgroup.showPanelNext();