aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-06 17:43:58 -0800
committerValerio Virgillito2012-02-06 17:43:58 -0800
commit22274815452d2add21b53466c7d49d07e90bfcc3 (patch)
treea7325bea80167a45be32e6b6ccc3f3d5c7fe6a6c /js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html
parent191898aaa63b357b5709b94cd38e15a258a9d95f (diff)
downloadninja-22274815452d2add21b53466c7d49d07e90bfcc3.tar.gz
initial integration of new tree components
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html')
-rw-r--r--js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html37
1 files changed, 35 insertions, 2 deletions
diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html
index 1e040e35..a9dda673 100644
--- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html
+++ b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html
@@ -11,7 +11,7 @@
11 11
12 <script type="text/montage-serialization"> 12 <script type="text/montage-serialization">
13 { 13 {
14 "componentController": { 14 "componentControllerArrayTemp": {
15 "module": "montage/ui/controller/array-controller", 15 "module": "montage/ui/controller/array-controller",
16 "name": "ArrayController", 16 "name": "ArrayController",
17 "bindings": { 17 "bindings": {
@@ -28,6 +28,38 @@
28 "properties": { 28 "properties": {
29 "element": {"#": "components_panel"} 29 "element": {"#": "components_panel"}
30 } 30 }
31 },
32
33 "componentsController" : {
34 "module": "js/components/controllers/tree-controller",
35 "name": "TreeController",
36 "properties" : {
37 "branchKey" : "children",
38 "labelKey" : "text",
39 "delegate": {"@": "owner" }
40 },
41 "bindings": {
42 "content": {
43 "boundObject": {"@": "owner"},
44 "boundObjectPropertyPath": "data2"
45 }
46 }
47 },
48
49 "componentsTree" : {
50 "module" : "js/components/treeview/treeview.reel",
51 "name" : "Treeview",
52 "properties" : {
53 "element" : {"#": "componentsContainer"},
54 "branchComponent" : {"@": "branch" },
55 "contentController": {"@": "componentsController"},
56 "showRoot" : false
57 }
58 },
59
60 "branch" : {
61 "module" : "js/components/treeview/ninja-branch.reel",
62 "name" : "Branch"
31 } 63 }
32 } 64 }
33 </script> 65 </script>
@@ -37,8 +69,9 @@
37 69
38 <div id="components_panel" class="components_panel"> 70 <div id="components_panel" class="components_panel">
39 <div class="treeHolder"> 71 <div class="treeHolder">
40 <ul id="comp_tree"></ul> 72 <ul id="comp_tree"></ul>
41 </div> 73 </div>
74 <div id="componentsContainer"></div>
42 </div> 75 </div>
43 76
44 </body> 77 </body>