Thursday, 22 August 2013

bindAttr and registerBoundHelper together

bindAttr and registerBoundHelper together

Is it possible to use a registerBoundHelper when changing the value of an
attribute using bindAttr? HTML
<div class="bar" {{styleWidth bindAttr style="value"}}></div>
JS
Ember.Handlebars.registerBoundHelper('styleWidth', function(width){
return ("width: " + width + "px;");
});
Many Thanks

No comments:

Post a Comment