-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Proposed Syntax with Modifiers #342
Comments
I found this emberjs/rfcs#112 (comment) (blast from the past). Anyone know if |
element-modifier as a helper does not appear to exist, but I have it mostly working. Theres a lot of code I copied and pasted and feel I am sure I missed some. Hopefully tests will tell me where that it. Husky threw me, wasnt aware of that but pretty cool. Going to try that out in my own repos |
I have edited the purposed syntax based on a couple of things I found while implementing. |
So there are a few things I dont like about this, specifically the yielded API and having to pass it around. But there is no modifier helper like there is for component, but been doing some thinking and I think I can actually pull off the below syntax which is pretty unbelievable. The a11y params would go on sortable-group as before.
|
I have updated the initial proposed syntax for the new streamlined version. There is no longer a Sortable component at all. For each original component there is a corresponding modifier. So converting from one to the other is a very simple conversion. |
Any possible movement on this? |
@cah-briangantzler sorry for the wait, I'll try to take a look at this later this week. |
Im not able to do that am I? Or are you asking me to change the ember-try config? |
Yes you are able to do that. I think you just need to remove the scenarios from the |
Was just thinking about this. I'm not sure I'll have time to evaluate any design proposal this week, unfortunately—don't consider yourselves blocked on me! |
I think the change overall is good. I don't think we need to worry about the failing build b/c it seems like there's some incompatibility with |
@cah-briangantzler I've released your changes as |
Where we needed it we wrote it a different way :) Ill have to create a branch and see how much it will take to upgrade it. |
Modifier version with a more streamlined interface
Modifiers will allow this addon to be used with other addons like ember-table, ember-yeti-table, ember-models-table
Modifiers are not meant for classic syntax, so to use these you would have to use angle-bracket syntax
Addons that would be used to do this:
ember-modifier-manager-polyfill > 2.12 . < 3.8
ember-modifier > 3.4 (Makes creating custom modifiers easier)
Optional
ember-native-class-polyfill (optional) > 3.4 < 3.6
ember-decorators-polyfill (optional) > 2.18 < 3.10
The text was updated successfully, but these errors were encountered: