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

Add #empty slot #262

Open
arthabus opened this issue Jun 4, 2024 · 0 comments
Open

Add #empty slot #262

arthabus opened this issue Jun 4, 2024 · 0 comments

Comments

@arthabus
Copy link

arthabus commented Jun 4, 2024

Alongside #header and #footer, add a slot to provide custom content when the list is empty.

This would allow to customize prompts for users when the list is empty while allowing to drag and drop from another list, for example:

<draggable>
    <template #empty>
        <div>Drop items here or click to create a new item</div>
    </template>
</draggable>

Kanban is a particular example for such functionality. Or in general anytime there is more than one list to move items between.

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