]> git.proxmox.com Git - extjs.git/blame - extjs/build/examples/kitchensink/classic/samples/view/tree/BasicTrees.js
add extjs 6.0.1 sources
[extjs.git] / extjs / build / examples / kitchensink / classic / samples / view / tree / BasicTrees.js
CommitLineData
6527f429
DM
1/**\r
2 * This example demonstrates basic tree configuration.\r
3 */\r
4Ext.define('KitchenSink.view.tree.BasicTrees', {\r
5 extend: 'Ext.Container',\r
6 xtype: 'basic-trees',\r
7 width: 640,\r
8\r
9 layout: {\r
10 type: 'table',\r
11 columns: 2,\r
12 tdAttrs: { style: 'padding: 10px;' }\r
13 },\r
14\r
15 defaults: {\r
16 xtype: 'treepanel',\r
17 width: 300,\r
18 height: 200,\r
19 rootVisible: false,\r
20 // Sharing the store synchronizes the views:\r
21 store: 'Files'\r
22 },\r
23 //<example>\r
24 otherContent: [{\r
25 type: 'Store',\r
26 path: 'classic/samples/store/Files.js'\r
27 }],\r
28 profiles: {\r
29 classic: {\r
30 },\r
31 neptune: {\r
32 }\r
33 },\r
34 //</example>\r
35 \r
36 initComponent: function() {\r
37 this.items = [\r
38 {\r
39 title: 'Tree'\r
40 },\r
41 {\r
42 title: 'Tree with No Lines',\r
43 lines: false\r
44 },\r
45 {\r
46 title: 'Tree with Arrows',\r
47 useArrows: true,\r
48 colspan: 2\r
49 }\r
50 ];\r
51\r
52 this.callParent();\r
53 }\r
54});\r