aboutsummaryrefslogtreecommitdiff
path: root/js/components/treeview/branch.reel/branch.html
diff options
context:
space:
mode:
authorArmen Kesablyan2012-02-07 16:55:34 -0800
committerArmen Kesablyan2012-02-07 16:55:34 -0800
commit10f0ad4c15f090b2d0d50d11e4c7aaf291e9eb0e (patch)
tree12b31910a3c7c7fa2ee0b26d8aaa611710e139a5 /js/components/treeview/branch.reel/branch.html
parent7f8730c3add146f1ba107e6fc22d1f5a8348ed8b (diff)
parent668510892537eaaeb2e11520831d87b44b2489b7 (diff)
downloadninja-10f0ad4c15f090b2d0d50d11e4c7aaf291e9eb0e.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into text-tool
Conflicts: _scss/compass_app_log.txt css/ninja.css
Diffstat (limited to 'js/components/treeview/branch.reel/branch.html')
-rw-r--r--js/components/treeview/branch.reel/branch.html147
1 files changed, 147 insertions, 0 deletions
diff --git a/js/components/treeview/branch.reel/branch.html b/js/components/treeview/branch.reel/branch.html
new file mode 100644
index 00000000..b44a54c5
--- /dev/null
+++ b/js/components/treeview/branch.reel/branch.html
@@ -0,0 +1,147 @@
1<!DOCTYPE html>
2<!-- <copyright>
3This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
5(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
6</copyright> -->
7<html lang="en">
8<head>
9 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
10 <link href="branch.css" rel="stylesheet" type="text/css" />
11 <script type="text/montage-serialization">
12 {
13 "owner": {
14 "module" : "js/components/treeview/branch.reel",
15 "name" : "Branch",
16 "properties" : {
17 "element" : {"#" : "branch"},
18 "label" : { "@" : "textComponent" },
19 "branchList": {"#" : "branchList"},
20 "arrayController": {"@": "arrayController" },
21 "repetition": {"@": "repetition"},
22 "leafComponent": {"@": "leaf"},
23 "branchComponent": {"@": "branch"}
24 }
25 },
26
27 "textComponent" : {
28 "module" : "montage/ui/dynamic-text.reel",
29 "name" : "DynamicText",
30 "properties" : {
31 "element" : { "#" : "label" }
32 },
33 "bindings" : {
34 "value" : {
35 "boundObject" : {"@": "owner"},
36 "boundObjectPropertyPath": "_labelText",
37 "oneway": true
38 }
39 }
40 },
41
42 "arrayController": {
43 "module": "montage/ui/controller/array-controller",
44 "name": "ArrayController",
45 "bindings": {
46 "content": {
47 "boundObject": {"@": "owner"},
48 "boundObjectPropertyPath": "childNodes"
49 }
50 }
51 },
52
53 "leaf": {
54 "module": "js/components/treeview/leaf.reel",
55 "name": "Leaf",
56 "bindings": {
57 "sourceObject": {
58 "boundObject": {"@": "repetition" },
59 "boundObjectPropertyPath": "objectAtCurrentIteration",
60 "oneway": true
61 },
62 "labelKey" : {
63 "boundObject": {"@": "owner" },
64 "boundObjectPropertyPath": "labelKey",
65 "oneway": true
66 },
67 "branchKey" : {
68 "boundObject": {"@": "owner" },
69 "boundObjectPropertyPath": "branchKey",
70 "oneway": true
71 },
72 "treeView" : {
73 "boundObject": {"@": "owner" },
74 "boundObjectPropertyPath": "treeView",
75 "oneway": true
76 }
77 }
78 },
79
80 "branch": {
81 "module": "js/components/treeview/branch.reel",
82 "name": "Branch",
83 "bindings": {
84 "sourceObject": {
85 "boundObject": {"@": "repetition" },
86 "boundObjectPropertyPath": "objectAtCurrentIteration",
87 "oneway": true
88 },
89 "labelKey" : {
90 "boundObject": {"@": "owner" },
91 "boundObjectPropertyPath": "labelKey",
92 "oneway": true
93 },
94 "branchKey" : {
95 "boundObject": {"@": "owner" },
96 "boundObjectPropertyPath": "branchKey",
97 "oneway": true
98 },
99 "treeView" : {
100 "boundObject": {"@": "owner" },
101 "boundObjectPropertyPath": "treeView",
102 "oneway": true
103 }
104 }
105 },
106
107 "repetition": {
108 "module": "montage/ui/repetition.reel",
109 "name": "Repetition",
110 "properties": {
111 "element": { "#": "branchList" },
112 "contentController": {"@": "arrayController" }
113 }
114 },
115
116 "substitution": {
117 "module": "montage/ui/substitution.reel",
118 "name": "Substitution",
119 "properties": {
120 "element": {"#": "treeItem"},
121 "switchComponents": {
122 "leaf": {"@": "leaf"},
123 "branch": {"@": "branch"}
124
125 }
126 },
127 "bindings": {
128 "switchValue": {
129 "boundObject": {"@": "repetition"},
130 "boundObjectPropertyPath": "objectAtCurrentIteration.treeNodeType",
131 "oneway": true
132 }
133 }
134 }
135 }
136 </script>
137</head>
138<body>
139 <div id="branch" class="branch">
140 <span id="label" class="branch-label"></span>
141
142 <ul id="branchList">
143 <li id="treeItem"></li>
144 </ul>
145 </div>
146</body>
147</html> \ No newline at end of file