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 fields : [ 'display_name', 'current', 'aspire' ],
211 [ 'A TEST', '1', '0' ],
213 [ 'B test', '1', '0' ],
214 [ 'C test', '1', '0' ],
215 [ 'D test', '1', '0' ]
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 '<img class="x-grid-check-icon' + state + '" src="/web.Hydra/roojs1/images/gray/s.gif"/>';
250 dataIndex : 'aspire',
251 xtype : 'ColumnModel',
253 renderer : function(v) {
254 var state = v> 0 ? '-checked' : '';
256 return '<img class="x-grid-check-icon' + state + '" src="/web.Hydra/roojs1/images/gray/s.gif"/>';
262 render : function (_self)
264 _this.listTable = _self;
265 (function() { _self.store.load({}); }).defer(100)
267 cellclick : function (_self, el, rowIndex, columnIndex, e)
270 var ce = this.colModel.getCellEditor(columnIndex,rowIndex);
271 var cm = this.colModel.getColumnById(this.colModel.getColumnId(columnIndex));
272 if (ce.field.value == 0) {
277 var rec = _this.listTable.ds.getAt(rowIndex);
279 rec.set('current', rec.data.current * 1 ? '0' : '1');
281 //_this.listTable.ds.fireEvent("datachanged", this);
298 '|xns' : 'Roo.bootstrap.dash',
300 xns : Roo.bootstrap.dash,
304 '|xns' : 'Roo.bootstrap',
307 html : 'tab 2 content'
319 '|xns' : 'Roo.bootstrap',
328 '|xns' : 'Roo.bootstrap',
329 cls : 'nav-tabs-custom',
334 '|xns' : 'Roo.bootstrap',
338 style : 'margin: 10,10,0,0'
350 '|xns' : 'Roo.bootstrap',
355 '|xns' : 'Roo.bootstrap',
362 '|xns' : 'Roo.bootstrap',
368 '|xns' : 'Roo.bootstrap.dash',
370 xns : Roo.bootstrap.dash,
373 '|xns' : 'Roo.bootstrap.dash',
375 xns : Roo.bootstrap.dash