aboutsummaryrefslogtreecommitdiff
path: root/js/components/menu/menu.reel/menu.html
diff options
context:
space:
mode:
authorPierre Frisch2011-12-22 07:25:50 -0800
committerValerio Virgillito2012-01-27 11:18:17 -0800
commitb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch)
tree0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/components/menu/menu.reel/menu.html
parent2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff)
downloadninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/components/menu/menu.reel/menu.html')
-rw-r--r--js/components/menu/menu.reel/menu.html89
1 files changed, 89 insertions, 0 deletions
diff --git a/js/components/menu/menu.reel/menu.html b/js/components/menu/menu.reel/menu.html
new file mode 100644
index 00000000..2cc6bf9b
--- /dev/null
+++ b/js/components/menu/menu.reel/menu.html
@@ -0,0 +1,89 @@
1<!DOCTYPE html>
2<!-- <copyright>
3 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4 No 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>
8<head>
9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10 <link rel="stylesheet" type="text/css" href="menu.css">
11
12 <script type="text/montage-serialization">
13 {
14 "menudata": {
15 "name": "MenuData",
16 "module": "js/data/menu-data"
17 },
18
19 "menuController": {
20 "name": "ArrayController",
21 "module": "montage/ui/controller/array-controller",
22 "properties": {
23 "automaticallyOrganizeObjects": false
24 },
25 "bindings": {
26 "content": {
27 "boundObject": {"@": "menudata"},
28 "boundObjectPropertyPath": "topLevelMenu",
29 "oneway": true
30 }
31 }
32 },
33
34 "repetition": {
35 "module": "montage/ui/repetition.reel",
36 "name": "Repetition",
37 "properties": {
38 "element": { "#": "topMenu" },
39 "contentController": {"@": "menuController"},
40 "menuComponent": {"@": "owner"}
41 }
42 },
43
44 "menuEntry": {
45 "module": "js/components/menu/menu-entry.reel",
46 "name": "MenuEntry",
47 "properties": {
48 "element": { "#": "menuItem" }
49 },
50 "bindings": {
51 "data": {
52 "boundObject": {"@": "repetition"},
53 "boundObjectPropertyPath": "objectAtCurrentIteration",
54 "oneway": true
55 },
56 "_menu": {
57 "boundObject": {"@": "repetition"},
58 "boundObjectPropertyPath": "menuComponent",
59 "oneway": true
60 }
61
62
63 }
64 },
65
66 "owner": {
67 "module": "js/components/menu/menu.reel",
68 "name": "Menu",
69 "properties": {
70 "element": {"#": "mainMenuBar"},
71 "controller": {"@": "menuController"},
72 "rep": {"@": "repetition"}
73 }
74 }
75 }
76 </script>
77
78</head>
79<body>
80
81 <nav id="mainMenuBar" class="mainMenuBar unselectable">
82 <ul id="topMenu" class="horizontal-menu">
83 <li id="menuItem"></li>
84 </ul>
85 </nav>
86
87
88</body>
89</html>