diff options
author | Valerio Virgillito | 2012-07-18 16:24:45 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-18 16:24:45 -0700 |
commit | f79f7c540d8533eed8fc562b809e15dcfea94438 (patch) | |
tree | 955b0d51fb163fb0a5165a6e16bf503de4cda712 /js/ui/menu/menu-item.reel/menu-item.html | |
parent | 71650434d5b78c2b86dc8a689d0c9034d418f38b (diff) | |
parent | 6f2e455a77179f81dfd19037c078c158d3e14ee2 (diff) | |
download | ninja-f79f7c540d8533eed8fc562b809e15dcfea94438.tar.gz |
Merge branch 'menu-fixes' of https://github.com/mencio/ninja
Diffstat (limited to 'js/ui/menu/menu-item.reel/menu-item.html')
-rwxr-xr-x | js/ui/menu/menu-item.reel/menu-item.html | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/js/ui/menu/menu-item.reel/menu-item.html b/js/ui/menu/menu-item.reel/menu-item.html new file mode 100755 index 00000000..6c306c3b --- /dev/null +++ b/js/ui/menu/menu-item.reel/menu-item.html | |||
@@ -0,0 +1,120 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- <copyright> | ||
3 | Copyright (c) 2012, Motorola Mobility LLC. | ||
4 | All Rights Reserved. | ||
5 | |||
6 | Redistribution and use in source and binary forms, with or without | ||
7 | modification, are permitted provided that the following conditions are met: | ||
8 | |||
9 | * Redistributions of source code must retain the above copyright notice, | ||
10 | this list of conditions and the following disclaimer. | ||
11 | |||
12 | * Redistributions in binary form must reproduce the above copyright notice, | ||
13 | this list of conditions and the following disclaimer in the documentation | ||
14 | and/or other materials provided with the distribution. | ||
15 | |||
16 | * Neither the name of Motorola Mobility LLC nor the names of its | ||
17 | contributors may be used to endorse or promote products derived from this | ||
18 | software without specific prior written permission. | ||
19 | |||
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
23 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
24 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
25 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
26 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
27 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
28 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
29 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
30 | POSSIBILITY OF SUCH DAMAGE. | ||
31 | </copyright> --> | ||
32 | <html> | ||
33 | <head> | ||
34 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
35 | <link rel="stylesheet" type="text/css" href="menu-item.css"> | ||
36 | |||
37 | <script type="text/montage-serialization"> | ||
38 | { | ||
39 | |||
40 | "menuItemButton": { | ||
41 | "prototype": "montage/ui/native/button.reel", | ||
42 | "properties": { | ||
43 | "element": {"#": "menuItemButton"} | ||
44 | }, | ||
45 | "bindings": { | ||
46 | "label": {"<-": "@owner.label"} | ||
47 | } | ||
48 | }, | ||
49 | |||
50 | "submenuConditional": { | ||
51 | "prototype": "montage/ui/condition.reel", | ||
52 | "properties": { | ||
53 | "element": {"#": "submenu"} | ||
54 | }, | ||
55 | "bindings": { | ||
56 | "condition": {"<-": "@owner.entries.count()"} | ||
57 | } | ||
58 | }, | ||
59 | |||
60 | "entriesController": { | ||
61 | "prototype": "montage/ui/controller/array-controller", | ||
62 | "bindings": { | ||
63 | "content": {"<-": "@owner.entries"} | ||
64 | } | ||
65 | }, | ||
66 | |||
67 | "repetition": { | ||
68 | "prototype": "montage/ui/repetition.reel", | ||
69 | "properties": { | ||
70 | "element": {"#": "submenuEntries"}, | ||
71 | "contentController": {"@": "entriesController"} | ||
72 | } | ||
73 | }, | ||
74 | |||
75 | "submenuItem": { | ||
76 | "prototype": "js/ui/menu/menu-item.reel", | ||
77 | "properties": { | ||
78 | "element": {"#": "submenuEntryItem"} | ||
79 | }, | ||
80 | "bindings": { | ||
81 | "label": {"<-": "@repetition.objectAtCurrentIteration.label"}, | ||
82 | "checked": {"<-": "@repetition.objectAtCurrentIteration.checked"}, | ||
83 | "enabled": {"<-": "@repetition.objectAtCurrentIteration.enabled"}, | ||
84 | "submenu": {"<-": "@repetition.objectAtCurrentIteration.submenu"}, | ||
85 | "entries": {"<-": "@repetition.objectAtCurrentIteration.entries"}, | ||
86 | "action": {"<-": "@repetition.objectAtCurrentIteration.action"} | ||
87 | } | ||
88 | }, | ||
89 | |||
90 | "owner": { | ||
91 | "prototype": "js/ui/menu/menu-item.reel", | ||
92 | "properties": { | ||
93 | "element": {"#": "menuItem"}, | ||
94 | "checkMark": {"#": "checkMark"}, | ||
95 | "submenuElement": {"#":"submenuEntries"} | ||
96 | } | ||
97 | } | ||
98 | } | ||
99 | </script> | ||
100 | |||
101 | </head> | ||
102 | <body> | ||
103 | |||
104 | <li data-montage-id="menuItem" class="menuItem"> | ||
105 | |||
106 | <span data-montage-id="checkMark" class="check"></span> | ||
107 | |||
108 | <button data-montage-id="menuItemButton" class="menuItemButton"></button> | ||
109 | |||
110 | <div data-montage-id="submenu" class="submenu"> | ||
111 | <span class="rightArrow"></span> | ||
112 | <ul data-montage-id="submenuEntries" class="submenuEntries" style="z-index: 9992;"> | ||
113 | <li data-montage-id="submenuEntryItem"></li> | ||
114 | </ul> | ||
115 | </div> | ||
116 | |||
117 | </li> | ||
118 | |||
119 | </body> | ||
120 | </html> | ||