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

Restricted column in custom Clone #97

Open
web-mm opened this issue Feb 4, 2024 · 3 comments
Open

Restricted column in custom Clone #97

web-mm opened this issue Feb 4, 2024 · 3 comments

Comments

@web-mm
Copy link

web-mm commented Feb 4, 2024

I have a vue-drggable list in a for-loop and each list contains multiple items. Items can be cloned from one list to another. I don't want to allow the items to be moved to first position in any list. Is there any inbuilt functionality to achieve this?

First index in the each list should be irreplaceable.

@Aaron-zon
Copy link
Contributor

https://alfred-skyblue.gitee.io/vue-draggable-plus/en/api/
filter Selector for items that should not be draggable

@manish-maersk
Copy link

I want each item to be draggable but first item in each list should not be replaceable.

@Aaron-zon
Copy link
Contributor

I want each item to be draggable but first item in each list should not be replaceable.

set a special class for the first item in each column, and then handle it through the filter in the API to set this class as an element that is not draggable.
image

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

3 participants