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

Insufficient getComponentData, header and footer slots #250

Open
AlexanderMtchedlidze opened this issue Dec 10, 2023 · 0 comments
Open

Insufficient getComponentData, header and footer slots #250

AlexanderMtchedlidze opened this issue Dec 10, 2023 · 0 comments

Comments

@AlexanderMtchedlidze
Copy link

AlexanderMtchedlidze commented Dec 10, 2023

First check https://github.com/SortableJS/Vue.Draggable/blob/master/CONTRIBUTING.md

Jsfiddle link

Step by step scenario

You should have some way of getting a current iteratable item or its index in the header or footer slots, you don't always have a case where you just use an item slot. Imagine a scenario where you have an accordion component and must display some data in an expandable part based on the items. or in componentData you have some props that are calculated per specific item using the index or item itself.

Actual Solution

To fix this problem you are required to have an additional layer in between them, which makes it difficult to get the parentNode or other data because the draggable component wraps it in another div.

Expected Solution

Make componentData header and footer slots to receive an item so they can become more flexible.

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

1 participant