I'm trying to extend some behaviour of Ember.TextField. I'm trying to add some logic for type="datetime-local" inputs, to be able to bind date-typed variables directly.
As we know, input values are strings, not dates. So in my new class that extends Ember.TextField I need a new property to be bound to the input that is basically a date converted to a string that the input expects.
Ideally I would like to reopen Ember.TextField and then only apply this logic if the input type is datetime-local and the bound value is a Date.
My question is:
Is there any way to change an attribute binding defined in a superclass? If it were possible I could just write attributeBindings:['value:textValue'] in my View/Component subclass. This would override the previous value binding definition from Ember.TextField.
X-reference: https://github.com/emberjs/ember.js/issues/10176
{{input value=model.startDate}}, just like I would do with an ordinary input. The problem is that I want the property to be namedvalueto use the input helper normally. - miguelcobain