Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ygongdev
Copy link
Member

No description provided.

@ygongdev ygongdev self-assigned this Jun 30, 2020
Copy link
Contributor

@cah-brian-gantzler cah-brian-gantzler left a 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

Comment on lines +50 to +62
### 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}}>&varr;</span>
</li>
{{/each}}
</ol>
```
Copy link
Contributor

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

Comment on lines +114 to +127
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}}>&varr;</span>
</li>
{{/each}}
</ol>
```
Copy link
Contributor

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

Comment on lines +138 to +141
modifier
```hbs
<ol {{sortable-group direction="x" onChange=(action "reorderItems")}>
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove modifier references

Comment on lines +156 to +159
modifier
```hbs
<li {{sortable-item spacing=15}}>
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove modifier refeerences

Comment on lines +171 to +174
modifier
```hbs
<li {{sortable-item distance=30}}>
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove modifier references

Comment on lines +261 to +272
modifier
```hbs
<li {{#sortable-item
onDragStart=(action "dragStarted")
onDragStop=(action "dragStopped")
model=modelItem
}}
>
{{modelItem.name}}
<span class="handle" {{sortable-handle}}>&varr;</span>
</li>
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modifier references

@knownasilya
Copy link
Contributor

@ygongdev any plans to circle back and address the feedback or is it ok to close?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants