samedi 14 février 2015

Ember, disable input based on condition

I have an Ember form, where I want to disable input's based on the user. I get an array of modifiable fields from my back end.


How do I get this to work with Ember? Ideal scenario would be to do this,



{{input type="text" disabled=isModifiable("middleName") value=middleName}}


I know that isn't possible. Fairly new to Ember, advice would be appreciated. Thanks.





Aucun commentaire:

Enregistrer un commentaire