-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
attribute binding override #10176
Comments
This is a great question for StackOverflow. We try to use Issues only for reporting bugs. You can check the contributing guidelines https://github.com/emberjs/ember.js/blob/master/CONTRIBUTING.md for information about ways to post. Please link the StackOverflow question back here when you've posted. |
@miguelcobain where you able to post this to SO and get help? |
@trek, yes: http://stackoverflow.com/questions/27906553/how-to-override-attribute-bindings-in-emberjs/27921578#27921578 There is a working solution, but I'd rather see Ember supporting something like "overridable concatenated properties", or "overridable attribute/class bindings". |
Is this feature desired in core? |
Couldn't find any information on this.
I'm trying to extend some behaviour of
Ember.TextField
. I'm trying to add some logic fortype="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 isdatetime-local
and the bound value is aDate
.My 2 questions are:
If it were possible I could just write
attributeBindings:['value:textValue']
in my View/Component subclass. This would override the previousvalue
binding definition fromEmber.TextField
.The text was updated successfully, but these errors were encountered: