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

suggestion: add a class for aviod dragging #131

Open
Ben-Avrahami opened this issue May 2, 2024 · 1 comment
Open

suggestion: add a class for aviod dragging #131

Ben-Avrahami opened this issue May 2, 2024 · 1 comment

Comments

@Ben-Avrahami
Copy link

for exmaple i have a card that has many components inside it.
i want the whole card beside lets say a button and a images to be able start initiate dragging,
so if i give the whole card the drag handle class, then also the btn and image will initiate dragging.
i whould like to have a class that i can give them that will let VueDraggable to know that items that have this class cannot initate a drag event.

@flower0wine
Copy link

你可以使用 filter 这个属性。下面我给出了一个示例,关于这个属性的简单例子,不知你的想法是否是这个。
示例
@Ben-Avrahami

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