1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| Ext.define('KitchenSink.view.tree.BasicTrees', {
| extend: 'Ext.Container',
| xtype: 'basic-trees',
| width: 640,
|
| layout: {
| type: 'table',
| columns: 2,
| tdAttrs: { style: 'padding: 10px;' }
| },
|
| defaults: {
| xtype: 'treepanel',
| width: 300,
| height: 200,
| rootVisible: false,
| // Sharing the store synchronizes the views:
| store: 'Files'
| },
| //<example>
| exampleDescription: [
| '<p>This example demonstrates basic tree configuration</p>.'
| ],
| themes: {
| classic: {
| },
| neptune: {
| }
| },
| //</example>
|
| initComponent: function() {
| this.items = [
| {
| title: 'Tree'
| },
| {
| title: 'Tree with No Lines',
| lines: false
| },
| {
| title: 'Tree with Arrows',
| useArrows: true,
| colspan: 2
| }
| ];
|
| this.callParent();
| }
| });
|
|