aboutsummaryrefslogtreecommitdiff
path: root/js/components/treeview/treeview.reel/treeview.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/treeview/treeview.reel/treeview.js')
-rw-r--r--js/components/treeview/treeview.reel/treeview.js43
1 files changed, 35 insertions, 8 deletions
diff --git a/js/components/treeview/treeview.reel/treeview.js b/js/components/treeview/treeview.reel/treeview.js
index 9f78d36d..03e28c93 100644
--- a/js/components/treeview/treeview.reel/treeview.js
+++ b/js/components/treeview/treeview.reel/treeview.js
@@ -13,6 +13,11 @@ exports.Treeview = Montage.create(Component, {
13 data : { value : null }, 13 data : { value : null },
14 rootBranch : { value : null }, 14 rootBranch : { value : null },
15 15
16 activationEvent: {
17 value: null,
18 serializable: true
19 },
20
16 _hasBeenDeserialized: { 21 _hasBeenDeserialized: {
17 value: false, 22 value: false,
18 enumerable: false 23 enumerable: false
@@ -27,6 +32,26 @@ exports.Treeview = Montage.create(Component, {
27 serializable: true 32 serializable: true
28 }, 33 },
29 34
35 defaultBranchComponent: {
36 value: null,
37 serializable: true
38 },
39
40 defaultLeafComponent: {
41 value: null,
42 serializable: true
43 },
44
45 scrollview: {
46 value: null,
47 serializable: true
48 },
49
50 slot: {
51 value: null,
52 serializable: true
53 },
54
30 hasTemplate: { 55 hasTemplate: {
31 value: true 56 value: true
32 }, 57 },
@@ -52,17 +77,18 @@ exports.Treeview = Montage.create(Component, {
52 rootBranch.hideLabel = !this.showRoot; 77 rootBranch.hideLabel = !this.showRoot;
53 rootBranch.treeView = this; 78 rootBranch.treeView = this;
54 79
55 this.slot.content = rootBranch; 80// this.slot.content = rootBranch;
56 rootBranch.sourceObject = this.contentController.root; 81// rootBranch.sourceObject = this.contentController.root;
57 rootBranch.needsDraw = true; 82// rootBranch.needsDraw = true;
58 this.rootBranch = rootBranch; 83// this.rootBranch = rootBranch;
59 84//
60 this.needsDraw = true; 85// this.needsDraw = true;
61 86
62 } 87 }
63 }, 88 },
64 showRoot : { 89 showRoot : {
65 value: null 90 value: null,
91 serializable: true
66 }, 92 },
67 93
68 _contentController: { 94 _contentController: {
@@ -109,7 +135,8 @@ exports.Treeview = Montage.create(Component, {
109 } 135 }
110 } 136 }
111 137
112 } 138 },
139 serializable: true
113 }, 140 },
114 141
115 deserializedFromTemplate: { 142 deserializedFromTemplate: {