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',
368 '|xns' : 'Roo.bootstrap',
374 '|xns' : 'Roo.bootstrap',
381 '|xns' : 'Roo.bootstrap',
387 '|xns' : 'Roo.bootstrap',
392 '|xns' : 'Roo.bootstrap',
398 '|xns' : 'Roo.bootstrap',
400 fieldLabel : 'Some input',
404 name : 'chosen_title'