diff options
author | Armen Kesablyan | 2012-05-30 15:30:38 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-05-30 15:30:38 -0700 |
commit | a581fb3c544ee2faeafbb75f7a3f5719f53cf323 (patch) | |
tree | c0c1c8354a9422a52f8bf322a56c94cf9a8ba526 /js/stage/binding-view.reel/binding-hud-option.reel | |
parent | 81239571c538f72e398fafa5b07725bf1bbb2d5d (diff) | |
download | ninja-a581fb3c544ee2faeafbb75f7a3f5719f53cf323.tar.gz |
Visual Bindings Initial generate from Array.
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/stage/binding-view.reel/binding-hud-option.reel')
-rwxr-xr-x | js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.html | 18 | ||||
-rwxr-xr-x | js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js | 2 |
2 files changed, 16 insertions, 4 deletions
diff --git a/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.html b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.html index 6b670455..6af26f7c 100755 --- a/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.html +++ b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.html | |||
@@ -7,21 +7,33 @@ | |||
7 | <html> | 7 | <html> |
8 | <head> | 8 | <head> |
9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
10 | <link rel="stylesheet" type="text/css" href="binding-view.css"> | 10 | <link rel="stylesheet" type="text/css" href="binding-hud-option.css"> |
11 | 11 | ||
12 | <script type="text/montage-serialization"> | 12 | <script type="text/montage-serialization"> |
13 | { | 13 | { |
14 | "owner": { | 14 | "owner": { |
15 | "prototype": "js/stage/binding-view.reel/binding-hud.reel", | 15 | "prototype": "js/stage/binding-view.reel/binding-hud-option.reel", |
16 | "properties": { | 16 | "properties": { |
17 | "element": {"#": "hudOption"} | 17 | "element": {"#": "hudOption"} |
18 | } | 18 | } |
19 | }, | ||
20 | "label": { | ||
21 | "prototype": "montage/ui/dynamic-text.reel", | ||
22 | "properties": { | ||
23 | "element": {"#": "hudLabel"} | ||
24 | }, | ||
25 | "bindings": { | ||
26 | "value": {"<-": "@owner.title"} | ||
27 | } | ||
19 | } | 28 | } |
20 | } | 29 | } |
21 | </script> | 30 | </script> |
22 | 31 | ||
23 | </head> | 32 | </head> |
24 | <body> | 33 | <body> |
25 | <div class="hudOption">Label for options</div> | 34 | <div data-montage-id="hudOption" class="hudOption"> |
35 | <label data-montage-id="hudLabel" class="hudLabel">Label</label> | ||
36 | <div class="connectorBubble"></div> | ||
37 | </div> | ||
26 | </body> | 38 | </body> |
27 | </html> | 39 | </html> |
diff --git a/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js index 91a0564e..58f4175e 100755 --- a/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js +++ b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js | |||
@@ -11,7 +11,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
11 | var Montage = require("montage/core/core").Montage, | 11 | var Montage = require("montage/core/core").Montage, |
12 | Component = require("montage/ui/component").Component; | 12 | Component = require("montage/ui/component").Component; |
13 | 13 | ||
14 | exports.bindingHud = Montage.create(Component, { | 14 | exports.BindingHudOption = Montage.create(Component, { |
15 | title: { | 15 | title: { |
16 | value: "value" | 16 | value: "value" |
17 | } | 17 | } |