aboutsummaryrefslogtreecommitdiff
path: root/js/stage/binding-view.reel/binding-view.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-05-23 14:26:46 -0700
committerArmen Kesablyan2012-05-23 14:26:46 -0700
commit3ed95247e9ea4b0a7833401ed6809647b7c4acbf (patch)
tree7e1cfc186527973c4b327b21b00c6f3ae6921ed5 /js/stage/binding-view.reel/binding-view.js
parent95bef3bbd77c6c3bd01b5222986f2dd35a7218b4 (diff)
downloadninja-3ed95247e9ea4b0a7833401ed6809647b7c4acbf.tar.gz
Binding Visual Tool Initial setup
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/stage/binding-view.reel/binding-view.js')
-rwxr-xr-xjs/stage/binding-view.reel/binding-view.js33
1 files changed, 28 insertions, 5 deletions
diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js
index d3d988c1..df3bc3ee 100755
--- a/js/stage/binding-view.reel/binding-view.js
+++ b/js/stage/binding-view.reel/binding-view.js
@@ -11,10 +11,31 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
11var Montage = require("montage/core/core").Montage, 11var Montage = require("montage/core/core").Montage,
12 Component = require("montage/ui/component").Component; 12 Component = require("montage/ui/component").Component;
13 13
14exports.bindingView = Montage.create(Component, { 14exports.BindingView = Montage.create(Component, {
15 //private Properties
16 _selectedElement: {
17 value: null
18 },
15 _bindables: { 19 _bindables: {
16 value: [] 20 value: []
17 }, 21 },
22 _nonVisualComponents: {
23 value:null
24 },
25
26 //Public Objects
27 hudRepeater: { value: null },
28
29
30 //Public Properties
31 selectedElement: {
32 get: function() {
33 return this._selectedElement;
34 },
35 set: function(val) {
36 this._selectedElement = val;
37 }
38 },
18 bindables: { 39 bindables: {
19 get: function() { 40 get: function() {
20 return this._bindables; 41 return this._bindables;
@@ -23,14 +44,16 @@ exports.bindingView = Montage.create(Component, {
23 this._bindables = val; 44 this._bindables = val;
24 } 45 }
25 }, 46 },
26
27
28 nonVisualComponents: { 47 nonVisualComponents: {
29 get: function() { 48 get: function() {
30 return this._bindables; 49 return this._nonVisualComponents;
31 }, 50 },
32 set: function(val) { 51 set: function(val) {
33 this._bindables = val; 52 this._nonVisualComponents = val;
34 } 53 }
35 } 54 }
55
56 //Methods
57
58
36}); \ No newline at end of file 59}); \ No newline at end of file