i have a similar question to this question
Emberjs – Disable and Enable TextField
so for text field it’s disabledBinding.
what about Ember.Select (drop down field)?
i tried disabledBinding but it’s not working.
thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not working because
disabledis not defined inattributeBindings, see code.A solution is to extend the
Ember.Selectand adddisabledto the concatenated property*attributeBindings, see http://jsfiddle.net/pangratz666/wTXfH/:Handlebars:
JavaScript:
*concatenated property means, that overwriting the this property in a subclass does not overwrite the values, but extends the existing ones from the super class.