diff options
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 | 39 |
1 files changed, 39 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 new file mode 100755 index 00000000..029a1a39 --- /dev/null +++ b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | |||
@@ -0,0 +1,39 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | /** | ||
8 | @requires montage/core/core | ||
9 | @requires montage/ui/component | ||
10 | */ | ||
11 | var Montage = require("montage/core/core").Montage, | ||
12 | Component = require("montage/ui/component").Component; | ||
13 | |||
14 | exports.BindingHud = Montage.create(Component, { | ||
15 | title: { | ||
16 | value: "default" | ||
17 | }, | ||
18 | properties: { | ||
19 | value: [ | ||
20 | {"title": "myProperty1"}, | ||
21 | {"title":"myproperty2"} | ||
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 | } | ||
38 | } | ||
39 | }); \ No newline at end of file | ||