Skip to content

Add #empty slot #262

Open
Open

Description

@arthabus

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.

Activity

  1. raisiqueira commented on Nov 5, 2024

    @raisiqueira

    It would be nice to have an empty slot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions