ember.js - adding / removing a class from an ember input -
using ember 1.0 , handlebars 1.0
i want present ember input disabled until user presses edit button. have managed functionality working @ expense of code duplication.
{{#if isediting}} {{input type="text" value=firstname class="form-control" placeholder="first name" }} {{else}} {{input type="text" value=firstname class="form-control" placeholder="first name" disabled=""}} {{/if}}
just wondering if there better way ..
thanks
instead of disabled input
classes, add disabled
attribute input field
{{input type="text" value=firstname class="input-medium" disabledbinding="disabled"}}
Comments
Post a Comment