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

Features request: limited dragging range. #13

Closed
AverageChau opened this issue Oct 25, 2019 · 2 comments
Closed

Features request: limited dragging range. #13

AverageChau opened this issue Oct 25, 2019 · 2 comments

Comments

@AverageChau
Copy link

So my list have 2 section: pinned and regular. All pinned items is on the beginning of the list, the regular item is the rest. I would like when user drag the pinned item, the pinned item can not move out of the pinned section. It is the same with the regular section.

@knopp
Copy link
Owner

knopp commented Oct 25, 2019

You can return false from reorder callback if item gets reordered out of its section.

@AverageChau
Copy link
Author

It worked

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

No branches or pull requests

2 participants