diff options
Diffstat (limited to 'js/components')
-rw-r--r-- | js/components/combobox.reel/combobox.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/js/components/combobox.reel/combobox.js b/js/components/combobox.reel/combobox.js index a68a7d6b..deef2a47 100644 --- a/js/components/combobox.reel/combobox.js +++ b/js/components/combobox.reel/combobox.js | |||
@@ -76,6 +76,26 @@ exports.Combobox = Montage.create(Component, { | |||
76 | } | 76 | } |
77 | }, | 77 | }, |
78 | 78 | ||
79 | _enabled: { | ||
80 | enumerable: false, | ||
81 | value: true | ||
82 | }, | ||
83 | |||
84 | enabled: { | ||
85 | enumerable: true, | ||
86 | serializable: true, | ||
87 | get: function() { | ||
88 | return this._enabled; | ||
89 | }, | ||
90 | set: function(value) { | ||
91 | if(value !== this._enabled) | ||
92 | { | ||
93 | this._enabled = value; | ||
94 | this.needsDraw = true; | ||
95 | } | ||
96 | } | ||
97 | }, | ||
98 | |||
79 | handleChange: | 99 | handleChange: |
80 | { | 100 | { |
81 | value:function(event) | 101 | value:function(event) |
@@ -117,6 +137,7 @@ exports.Combobox = Montage.create(Component, { | |||
117 | } | 137 | } |
118 | this.element.appendChild(optionItem); | 138 | this.element.appendChild(optionItem); |
119 | } | 139 | } |
140 | this.element.disabled = !this._enabled; | ||
120 | } | 141 | } |
121 | } | 142 | } |
122 | }, | 143 | }, |