- {@link #columns}: [\r
- {id: 'company', header: 'Company', width: 200, sortable: true, dataIndex: 'company'},\r
- {header: 'Price', width: 120, sortable: true, renderer: Ext.util.Format.usMoney, dataIndex: 'price'},\r
- {header: 'Change', width: 120, sortable: true, dataIndex: 'change'},\r
- {header: '% Change', width: 120, sortable: true, dataIndex: 'pctChange'},\r
- // instead of specifying renderer: Ext.util.Format.dateRenderer('m/d/Y') use xtype\r
- {header: 'Last Updated', width: 135, sortable: true, dataIndex: 'lastChange', xtype: 'datecolumn', format: 'M d, Y'}\r
- ],\r
+ {@link #colModel}: new {@link Ext.grid.ColumnModel}({\r
+ {@link Ext.grid.ColumnModel#defaults defaults}: {\r
+ width: 120,\r
+ sortable: true\r
+ },\r
+ {@link Ext.grid.ColumnModel#columns columns}: [\r
+ {id: 'company', header: 'Company', width: 200, sortable: true, dataIndex: 'company'},\r
+ {header: 'Price', renderer: Ext.util.Format.usMoney, dataIndex: 'price'},\r
+ {header: 'Change', dataIndex: 'change'},\r
+ {header: '% Change', dataIndex: 'pctChange'},\r
+ // instead of specifying renderer: Ext.util.Format.dateRenderer('m/d/Y') use xtype\r
+ {\r
+ header: 'Last Updated', width: 135, dataIndex: 'lastChange',\r
+ xtype: 'datecolumn', format: 'M d, Y'\r
+ }\r
+ ],\r
+ }),\r