]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('Neptune.view.tree.Trees', {\r |
2 | extend: 'Ext.container.Container',\r | |
3 | xtype: 'trees',\r | |
4 | id: 'trees',\r | |
5 | \r | |
6 | layout: {\r | |
7 | type: 'table',\r | |
8 | columns: 2,\r | |
9 | tdAttrs: { style: 'padding: 7px; vertical-align: top;' },\r | |
10 | tableAttrs: {\r | |
11 | style: {\r | |
12 | width: '100%'\r | |
13 | }\r | |
14 | }\r | |
15 | },\r | |
16 | defaults: {\r | |
17 | height: 300\r | |
18 | },\r | |
19 | items: [\r | |
20 | { xtype: 'basicTree' },\r | |
21 | { xtype: 'basicTree', lines: false, title: 'Tree with no lines' },\r | |
22 | { xtype: 'treeGrid' },\r | |
23 | {\r | |
24 | xtype: 'treeGrid',\r | |
25 | title: 'Locking treegrid',\r | |
26 | initComponent: function() {\r | |
27 | delete this.columns[0].flex;\r | |
28 | this.columns[0].width = 270;\r | |
29 | this.columns[0].locked = true;\r | |
30 | Neptune.view.tree.widget.TreeGrid.prototype.initComponent.apply(this, arguments);\r | |
31 | }\r | |
32 | }\r | |
33 | ]\r | |
34 | }); |