aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjs/stage/binding-view.reel/binding-hud.reel/binding-hud.html8
-rwxr-xr-xjs/stage/binding-view.reel/binding-view.html31
-rwxr-xr-xjs/stage/binding-view.reel/binding-view.js25
3 files changed, 36 insertions, 28 deletions
diff --git a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.html b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.html
index c81b70d3..1c73fd77 100755
--- a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.html
+++ b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.html
@@ -23,11 +23,7 @@
23 "element": {"#": "hudRepetition"} 23 "element": {"#": "hudRepetition"}
24 }, 24 },
25 "bindings": { 25 "bindings": {
26 "objects": { 26 "objects": {"<-": "@owner.properties"}
27 "boundObject": {"@": "owner"},
28 "boundObjectPropertyPath": "properties",
29 "oneway": true
30 }
31 } 27 }
32 }, 28 },
33 "hudOption": { 29 "hudOption": {
@@ -36,7 +32,7 @@
36 "element": {"#" : "hudOption"} 32 "element": {"#" : "hudOption"}
37 }, 33 },
38 "bindings": { 34 "bindings": {
39 "title": {"<-": "@objectAtCurrentIteration.title"} 35 "title": {"<-": "@repeater.objectAtCurrentIteration.title"}
40 } 36 }
41 } 37 }
42 } 38 }
diff --git a/js/stage/binding-view.reel/binding-view.html b/js/stage/binding-view.reel/binding-view.html
index 152345d4..b77f8e27 100755
--- a/js/stage/binding-view.reel/binding-view.html
+++ b/js/stage/binding-view.reel/binding-view.html
@@ -24,17 +24,16 @@
24 "element": {"#": "hudRepeater"} 24 "element": {"#": "hudRepeater"}
25 }, 25 },
26 "bindings": { 26 "bindings": {
27 "objects": { 27 "objects": {"<-": "@owner.bindables"}
28 "boundObject": {"@": "owner"},
29 "boundObjectPropertyPath": "bindables",
30 "oneway": true
31 }
32 } 28 }
33 }, 29 },
34 "hud": { 30 "hud": {
35 "prototype": "js/stage/binding-view.reel/binding-hud.reel", 31 "prototype": "js/stage/binding-view.reel/binding-hud.reel",
36 "properties": { 32 "properties": {
37 "element": {"#" : "hud"} 33 "element": {"#" : "hud"}
34 },
35 "bindings": {
36 "name": {
38 } 37 }
39 }, 38 },
40 "nonVisualRepeater": { 39 "nonVisualRepeater": {
@@ -43,11 +42,7 @@
43 "element": {"#": "nonVisualRepeater"} 42 "element": {"#": "nonVisualRepeater"}
44 }, 43 },
45 "bindings": { 44 "bindings": {
46 "objects": { 45 "objects": {"<-": "@owner.nonVisualComponents"}
47 "boundObject": {"@": "owner"},
48 "boundObjectPropertyPath": "nonVisualComponents",
49 "oneway": true
50 }
51 } 46 }
52 }, 47 },
53 "nonVisualComponent": { 48 "nonVisualComponent": {
@@ -56,16 +51,8 @@
56 "element": {"#": "nonVisualComponent"} 51 "element": {"#": "nonVisualComponent"}
57 }, 52 },
58 "bindings": { 53 "bindings": {
59 "objectName": { 54 "objectName": {"<-": "@hudRepeater.objectAtCurrentIteration.objectName"},
60 "boundObject": {"@": "hudRepeater"}, 55 "objectImage": {"<-": "@hudRepeater.objectAtCurrentIteration.objectImage"}
61 "boundObjectPropertyPath": "objectAtCurrentIteration.objectName",
62 "oneway": true
63 },
64 "objectImage": {
65 "boundObject": {"@": "hudRepeater"},
66 "boundObjectPropertyPath": "objectAtCurrentIteration.objectImage",
67 "oneway": true
68 }
69 } 56 }
70 } 57 }
71 } 58 }
@@ -82,7 +69,9 @@
82 </div> 69 </div>
83 </div> 70 </div>
84 <div data-montage-id="nonVisualRepeater"> 71 <div data-montage-id="nonVisualRepeater">
85 <div data-montage-id="nonVisualComponent"></div> 72 <div data-montage-id="nonVisualComponent">
73
74 </div>
86 </div> 75 </div>
87 </section> 76 </section>
88 77
diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js
index df3bc3ee..97593c66 100755
--- a/js/stage/binding-view.reel/binding-view.js
+++ b/js/stage/binding-view.reel/binding-view.js
@@ -34,6 +34,7 @@ exports.BindingView = Montage.create(Component, {
34 }, 34 },
35 set: function(val) { 35 set: function(val) {
36 this._selectedElement = val; 36 this._selectedElement = val;
37 this.needsDraw = true;
37 } 38 }
38 }, 39 },
39 bindables: { 40 bindables: {
@@ -51,9 +52,31 @@ exports.BindingView = Montage.create(Component, {
51 set: function(val) { 52 set: function(val) {
52 this._nonVisualComponents = val; 53 this._nonVisualComponents = val;
53 } 54 }
54 } 55 },
55 56
56 //Methods 57 //Methods
57 58
59 //Montage Draw Cycle
60 prepareForDraw: {
61 value: function() {
62
63 }
64 },
65
66 draw: {
67 value: function() {
68 if(this.selectedElement !== null) {
69 this.bindables = [
70 {"objectName": "Input1", "objectTitle": ""},
71 ]
72 }
73 }
74 },
75
76 didDraw: {
77 value: function() {
78
79 }
80 }
58 81
59}); \ No newline at end of file 82}); \ No newline at end of file