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

Lock items in the list #6

Open
tonymckendry opened this issue Oct 3, 2016 · 2 comments
Open

Lock items in the list #6

tonymckendry opened this issue Oct 3, 2016 · 2 comments

Comments

@tonymckendry
Copy link

Hey there, I love this, it works great!
One thing I would like to do is lock the position of elements within the list, and allow the rest of the elements to be dragged around them. Any idea how I might accomplish this? Thanks again!

@Macil
Copy link
Collaborator

Macil commented Oct 3, 2016

You could make the locked items not have a drag handle by omitting the element or using CSS to make it be display:none.

@tonymckendry
Copy link
Author

Thanks for the suggestion @agentme, however while this does prevent me from being able to drag the element, it has no bearing on whether I can displace the item in the list by dragging another item above/below it. Ideally, i'd like to be able to have an item 'stick' in the same index it is in when it is locked. Forcing it to remain at the same index wouldn't be so tough in theory, but i'm more stumped by visually preventing the element from moving around in the UI.

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