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