-
Notifications
You must be signed in to change notification settings - Fork 5
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
readonly.bind does not work. #19
Comments
There are several things that do not work as expected about binding polymer widgets with aurelia. we have had to create several behaviors (aurelia custom attributes) that extend this plugin and make life easier. For the readonly.bind we have a custom attribute as follows
Now in your view you just need:
Thats all! PS: I'm not sure but I thing as custom-readnly behavior has only one property you can just use
Let me know if this works too PS2: We have other similar behaviors for max-length, min-length,... |
@dpinart Thanks so much for taking much time. Actually, I have the same one for readonly. Are you going for production with aurelia-polymer? Have you had a site with the combination? I haven't figure out how many issues are hidden. Could you make a new issue or issues that lists all your findings? I have noticed an active color remains on paper-menus sometimes. |
It's true that integration with polymer is being a bit harder that I expected, bindings issues are just minor ones that can be solved with custom attributes. The harder thing about polymer and aurelia integration is about populating dynamically 'list' polymer widgets like toolbar, menu... In issue #17 you'll find a couple of workarounds that can be helpful Once said that, I'm quite happy with aurelia-polymer and we're already on production MobileYourself PS: type doctor/doctor. |
And, very good coloring. |
@HIRANO-Satoshi thanks a lot. Do not hesitate to ask me whatever you think I can be useful. |
@dpinart Thanks. I will ask you. @RoguePanda Have you seen the site? Your efforts are bearing fruits. |
Sorry about all the delays - I've been busier than expected with work. @dpinart do you think those behaviors are something that would make sense to include in the plugin? I've been meaning to work out some way to have more customizable events and attribute configuration, and it sounds like you have a good start on it. Unfortunately, I think webpack and HTML imports might be somewhat philosophically at odds with each other, since they both try to be complete import/module systems. As for template generation, I think the core of that is the Polymer bug I mentioned in #17. Doesn't look like there's been much progress on it, but it'll hopefully clear up a lot of these issues |
I guess attributes specified in attribute-map.js have this issue. https://github.com/davismj/templating-binding/blob/master/src/attribute-map.js
|
In the following code readonly does not work. editing is a boolean variable in a view model.
The following code works well. input switches readonly and writable according to the editing variable.
I use JSPM for testing.
The text was updated successfully, but these errors were encountered: