Skip to content

Optionally toggle multiple selection for generic use case. #386

@GuptaSatyanshuThinksys

Description

@GuptaSatyanshuThinksys

I have been using this data table on multiple pages of my app, and in some places, I need to use multiple selection, while in others, I don't. When I use v-model:items-selected="itemsSelected", I am getting the multiple selection checkboxes on all the pages where I have used my data table component (I have created a generic datatable component where I have used the vue3-easy-data-table.). Is there any way I can dynamically tell the data table when I want multiple selection and when I don't?

This is my DataTable.vue component

image

This is what I want (Check for multipleSelectionAllowed prop)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions