-
-
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
Updating documentation for modifier #375
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you were attempting to remove the references to the component version, under the heading about the group model, the code is showing the component version. Im not sure how to attach a comment to code you didnt change, so there may be other references
### modifier | ||
```hbs | ||
{{! app/templates/my-route.hbs }} | ||
|
||
<ol {{sortable-group onChange=(action "reorderItems")}}> | ||
{{#each model.items as |modelItem|}} | ||
<li {{sortable-item model=modelItem}}> | ||
{{modelItem.name}} | ||
<span class="handle" {{sortable-handle}}>↕</span> | ||
</li> | ||
{{/each}} | ||
</ol> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the modifier version is going to be released as 3.x.x, probably we probably should remove references to in the V2 migration guide since I dont think it was ever released in a 2.x series
The modifier version does not support `groupModel`, use the currying of `action` or the `fn` helper. | ||
|
||
```hbs | ||
{{! app/templates/my-route.hbs }} | ||
|
||
<ol {{sortable-group onChange=(action "reorderItems" model)}}> | ||
{{#each model.items as |modelItem|}} | ||
<li {{sortable-item model=modelItem}}> | ||
{{modelItem.name}} | ||
<span class="handle" {{sortable-handle}}>↕</span> | ||
</li> | ||
{{/each}} | ||
</ol> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same of the references to modifier
modifier | ||
```hbs | ||
<ol {{sortable-group direction="x" onChange=(action "reorderItems")}> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove modifier references
modifier | ||
```hbs | ||
<li {{sortable-item spacing=15}}> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove modifier refeerences
modifier | ||
```hbs | ||
<li {{sortable-item distance=30}}> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove modifier references
modifier | ||
```hbs | ||
<li {{#sortable-item | ||
onDragStart=(action "dragStarted") | ||
onDragStop=(action "dragStopped") | ||
model=modelItem | ||
}} | ||
> | ||
{{modelItem.name}} | ||
<span class="handle" {{sortable-handle}}>↕</span> | ||
</li> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modifier references
@ygongdev any plans to circle back and address the feedback or is it ok to close? |
No description provided.