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

Optionally toggle multiple selection for generic use case. #386

Open
GuptaSatyanshuThinksys opened this issue Dec 27, 2024 · 0 comments
Open

Comments

@GuptaSatyanshuThinksys
Copy link

GuptaSatyanshuThinksys commented Dec 27, 2024

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

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