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.reel/binding-hud.js | |
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.reel/binding-hud.js')
-rwxr-xr-x | js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js index a63f2775..029a1a39 100755 --- a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js +++ b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | |||
@@ -12,10 +12,28 @@ 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.BindingHud = Montage.create(Component, { |
15 | title: { | ||
16 | value: "default" | ||
17 | }, | ||
15 | properties: { | 18 | properties: { |
16 | value: [ | 19 | value: [ |
17 | {"title": "myProperty1"}, | 20 | {"title": "myProperty1"}, |
18 | {"title":"myproperty2"} | 21 | {"title":"myproperty2"} |
19 | ] | 22 | ] |
23 | }, | ||
24 | |||
25 | x: { | ||
26 | value: 20 | ||
27 | }, | ||
28 | |||
29 | y: { | ||
30 | value: 100 | ||
31 | }, | ||
32 | |||
33 | draw: { | ||
34 | value: function() { | ||
35 | this.element.style.top = this.y + "px"; | ||
36 | this.element.style.left = this.x + "px"; | ||
37 | } | ||
20 | } | 38 | } |
21 | }); \ No newline at end of file | 39 | }); \ No newline at end of file |