]> git.proxmox.com Git - extjs.git/blame - extjs/build/examples/kitchensink/classic/samples/view/grid/RowNumberer.js
add extjs 6.0.1 sources
[extjs.git] / extjs / build / examples / kitchensink / classic / samples / view / grid / RowNumberer.js
CommitLineData
6527f429
DM
1Ext.define('KitchenSink.view.grid.RowNumberer', {\r
2 extend: 'Ext.grid.Panel',\r
3\r
4 xtype: 'row-numberer',\r
5 store: 'Companies',\r
6\r
7 columns: [\r
8 {xtype: 'rownumberer'},\r
9 {text: "Company", flex: 1, sortable: true, dataIndex: 'name'},\r
10 {text: "Price", width: 120, sortable: true, formatter: 'usMoney', dataIndex: 'price'},\r
11 {text: "Change", width: 120, sortable: true, dataIndex: 'change'},\r
12 {text: "% Change", width: 120, sortable: true, dataIndex: 'pctChange'},\r
13 {text: "Last Updated", width: 120, sortable: true, formatter: 'date("m/d/Y")', dataIndex: 'lastChange'}\r
14 ],\r
15 columnLines: true,\r
16 height: 300,\r
17 title: 'Grid with Numbered Rows',\r
18 //<example>\r
19 exampleTitle: 'Grid with Numbered Rows',\r
20 otherContent: [{\r
21 type: 'Store',\r
22 path: 'classic/samples/store/Companies.js'\r
23 }, {\r
24 type: 'Model',\r
25 path: 'classic/samples/model/Company.js'\r
26 }],\r
27 profiles: {\r
28 classic: {\r
29 width: 700\r
30 },\r
31 neptune: {\r
32 width: 750\r
33 }\r
34 },\r
35 //</example>\r
36\r
37 initComponent: function() {\r
38 this.width = this.profileInfo.width;\r
39 this.callParent();\r
40 }\r
41});