-
Notifications
You must be signed in to change notification settings - Fork 149
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
Propagate Events #49
Propagate Events #49
Conversation
Thanks, looks good! Could you add a note to the docs for this, and mention that the parameters are in the Material-UI proposed future order? |
How's this look? I assume we'll bump versions too? So I said "as of 0.3.8"... |
I'll update the demo code too. Maybe use some MUI SVG or Font Icons that match the values you have the in current select demo. Have it change them out according to what's picked, just to show the usage of the new feature. |
Perfect.
That would be good. Feel free to switch the wording in the select if it doesn't match icons. |
Ok. I ended up having to change a bit more than expected on the demo code:
I honestly think this muddies up the example code a bit. We could think about including an example folder with a demo project that can be fired up locally. A simple webpack dev server would work... Then we can put more advanced code in there and keep the docs on the README a bit more clear. Of course, that would take more time, so it might be good to go with this and look to more extended examples in the future. It's your call though. =) https://github.com/magicalcows/formsy-material-ui/tree/propagate-events |
Yes, I was trying to keep the example code simple. If someone wants a fully working example, there's always formsy-mui-demo (linked from the examples section in the Readme). It needs to be updated though. It happens to use Meteor, to make the build and hosting easy, but it's not using any Meteor specific code. |
Cool. I reverted the readme. The problem with the meteor thing is it's not as easy for folks to look at source files. I love repos like material-ui's where the source for their docs is right there with the library, letting me poke around to see how the "experts" are doing it. ;) Their examples folder is nice too, ready to go projects to start building on (though they should probably be moved to their own repos and linked in, so they can be treated as "seeds".) I'd be happy to help you setup an |
It's one file! 😆 https://github.com/mbrookes/formsy-mui-demo/blob/master/Form.jsx The css is empty, the lib and packages directories can go away with Meteor 1.3 (beta).
Uh, you seem to be arguing with yourself here. Let me know when you two sort it out! 😉 A minimal node-only example wouldn't be a bad idea in any case. |
Yup, i thought about that after I posted it. I didn't notice the repo for the demo, I'll fork it and submit a PR on it. I'll need you to push this PR & update the version so I get it when I |
No prob, go ahead and squash, and we can get a release out. |
Any chance of a release with this soon? Thanks for sorting this one out @magicalcows |
c3c60ef
to
3e0c432
Compare
Commits squashed! Your turn @mbrookes =) |
Mmm. I've just had another thought. (Sorry!) 😄 The other thing mentioned in that issue is that we plan to standardise on It might make sense to standardise on that here now rather than having to deprecate the old names later. It will mean a slight difference in API until Material-UI catches up, but we'll already have that with the parameter ordering, so I think we can live with it. If you agree I can make the change as a follow up PR before release, or you could update and re-squash. |
d1fa438
to
c47e27e
Compare
I agree, but I already did that (I think... ;) All of the handlers are using the new I did however notice that I messed up in the RadioGroup. I had the check in |
I was just looking over the proposal again, reading through comments. I think I see what you're suggesting now... Example: in the |
c47e27e
to
9021239
Compare
I went ahead and made those changes, so now all of them check for |
[Core] Propagate events as onChange()
sweet. =) you gonna bump the version? |
Released! 🎉 Thanks for this! 👍 |
Added checks to event handlers to see if like-named handlers exist in props and if so, call them.
Closes #27.