diff options
author | Ananya Sen | 2012-07-23 17:01:14 -0700 |
---|---|---|
committer | Ananya Sen | 2012-07-23 17:01:14 -0700 |
commit | 48d9ed19573a07c68da305d14ca6ab3a04d31d64 (patch) | |
tree | b4bf6c48c7fdade2cf531d84cac3359489d38405 /js/ui/menu/menu-entry.reel/menu-entry.html | |
parent | c07a7a9d11bc8299fa9686544b18840cc8e640c2 (diff) | |
parent | afc7ad4f240fdf7890a79c2d4d7f8eb2e7c30a34 (diff) | |
download | ninja-48d9ed19573a07c68da305d14ca6ab3a04d31d64.tar.gz |
Merge branch 'refs/heads/Jose-Document' into Document
Diffstat (limited to 'js/ui/menu/menu-entry.reel/menu-entry.html')
-rwxr-xr-x | js/ui/menu/menu-entry.reel/menu-entry.html | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/js/ui/menu/menu-entry.reel/menu-entry.html b/js/ui/menu/menu-entry.reel/menu-entry.html new file mode 100755 index 00000000..fd03b951 --- /dev/null +++ b/js/ui/menu/menu-entry.reel/menu-entry.html | |||
@@ -0,0 +1,102 @@ | |||
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-entry.css"> | ||
36 | |||
37 | <script type="text/montage-serialization"> | ||
38 | { | ||
39 | "entriesController": { | ||
40 | "prototype": "montage/ui/controller/array-controller", | ||
41 | "bindings": { | ||
42 | "content": {"<-": "@owner.entries"} | ||
43 | } | ||
44 | }, | ||
45 | |||
46 | "menuHeaderButton": { | ||
47 | "prototype": "montage/ui/native/button.reel", | ||
48 | "properties": { | ||
49 | "element": {"#": "menuHeaderButton"} | ||
50 | }, | ||
51 | "bindings": { | ||
52 | "label": {"<-": "@owner.label"} | ||
53 | } | ||
54 | }, | ||
55 | |||
56 | "repetition": { | ||
57 | "prototype": "montage/ui/repetition.reel", | ||
58 | "properties": { | ||
59 | "element": {"#": "subEntries"}, | ||
60 | "contentController": {"@": "entriesController"} | ||
61 | } | ||
62 | }, | ||
63 | |||
64 | "menuItem": { | ||
65 | "prototype": "js/ui/menu/menu-item.reel", | ||
66 | "properties": { | ||
67 | "element": { "#": "menuEntryItem" } | ||
68 | }, | ||
69 | "bindings": { | ||
70 | "enabled": {"<-": "@repetition.objectAtCurrentIteration.enabled"}, | ||
71 | "checked": {"<-": "@repetition.objectAtCurrentIteration.checked"}, | ||
72 | "label": {"<-": "@repetition.objectAtCurrentIteration.label"}, | ||
73 | "submenu": {"<-": "@repetition.objectAtCurrentIteration.submenu"}, | ||
74 | "entries": {"<-": "@repetition.objectAtCurrentIteration.entries"}, | ||
75 | "action": {"<-": "@repetition.objectAtCurrentIteration.action"} | ||
76 | } | ||
77 | }, | ||
78 | |||
79 | "owner": { | ||
80 | "prototype": "js/ui/menu/menu-entry.reel", | ||
81 | "properties": { | ||
82 | "element": {"#": "menuItem"}, | ||
83 | "menuHeaderButton": {"@": "menuHeaderButton"} | ||
84 | } | ||
85 | } | ||
86 | } | ||
87 | </script> | ||
88 | |||
89 | </head> | ||
90 | <body> | ||
91 | |||
92 | <li data-montage-id="menuItem" class="topMenuItem"> | ||
93 | <button data-montage-id="menuHeaderButton" class="headerButton"></button> | ||
94 | |||
95 | <ul data-montage-id="subEntries" class="subEntries" style="z-index: 9991;"> | ||
96 | <li data-montage-id="menuEntryItem"></li> | ||
97 | </ul> | ||
98 | |||
99 | </li> | ||
100 | |||
101 | </body> | ||
102 | </html> | ||