-
-
Notifications
You must be signed in to change notification settings - Fork 924
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
Component library #81
Comments
Yeah, definitely need a place to start aggregating community-authored components. There's already a few gems floating around in various places. Generally, I think it would be good to have github repos for these things, so they can have a proper home (with issue tracking, forkability, etc). We could start using the wiki feature in Github to link to the various projects, and I could add a link to the wiki into the main site as well. |
I added a link to the wiki in the community page. It'll show up on the site when 0.1.13 is released |
Hi guys, Just a quick comment - if we use a bi-directionally bound model, this kind of component is not really necessary. I have such bindings here: https://github.com/jsguy/mithril.bindings Using it, we get this in the model:
In the view:
This is fully bi-directional so if you set model.selectValue("key2"), the select will update accordingly and as you change the select value, the model selectValue is updated. Note the use of "text" and "value" in the options, which is standard HTML option attributes, which IMHO is more semantic. |
OT: Congratulations on the speed http://jsperf.com/angular-vs-knockout-vs-ember/308
Just dipping my toe into mithril reveals it's power and yet a pain-point. Any tool with lots of power has the potential to modularize. It would be cool if there was a place on the website or somewhere else that would publish components. (In the Knockout world, there is a section in the wiki for recipes.)
I'll start with a simple select component:
The text was updated successfully, but these errors were encountered: