aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties/sections/custom.reel
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-06 14:03:40 -0800
committerNivesh Rajbhandari2012-02-06 14:18:58 -0800
commitf94b0c5ada403379b3ff8a900c2a2aabcecce49e (patch)
tree07d28ffb913e0a06e70d0792dcd1b2a87f7b7a83 /js/panels/properties/sections/custom.reel
parent5737864d1d55d96e3cc3c1bc9b38ec58303b3981 (diff)
downloadninja-f94b0c5ada403379b3ff8a900c2a2aabcecce49e.tar.gz
Add enabled property for ComboBox to support enabling/disabling materials dropdowns in the PI.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/panels/properties/sections/custom.reel')
-rw-r--r--js/panels/properties/sections/custom.reel/custom.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/panels/properties/sections/custom.reel/custom.js b/js/panels/properties/sections/custom.reel/custom.js
index 2b5b522a..e92a39fd 100644
--- a/js/panels/properties/sections/custom.reel/custom.js
+++ b/js/panels/properties/sections/custom.reel/custom.js
@@ -193,6 +193,18 @@ exports.CustomSection = Montage.create(Component, {
193 obj.items = aField.items; 193 obj.items = aField.items;
194 } 194 }
195 } 195 }
196 if (aField.enabled) {
197 if(aField.enabled.boundObject) {
198 // TODO - For now, always bind to this.controls[someProperty]
199 Object.defineBinding(obj, "enabled", {
200 boundObject: this.controls,
201 boundObjectPropertyPath: aField.enabled.boundProperty,
202 oneway: false
203 });
204 } else {
205 obj.enabled = aField.enabled;
206 }
207 }
196 208
197 obj.addEventListener("change", this, false); 209 obj.addEventListener("change", this, false);
198// 210//