-
Notifications
You must be signed in to change notification settings - Fork 389
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
How to disable selection input in <UTable>? #1775
Comments
I am also facing the same issue. |
You have to leave out the v-model part. If you still want to use the functionality of being able to click a row, you can use the @click function. EDIT: ups misread your question. But you could still do this without v-model and add your own col for a checkbox. |
Thanks @madsh93, i will try it. I will update more info about problem in this ticket |
I've tried customizing a selection column using The next step is to add 2 properties, You can check it out here: https://stackblitz.com/edit/nuxt-starter-bb3fnm?file=app.vue I'll close this ticket here, thanks. |
Is possible to disable this selection column and re-enable it from given condition? |
Yes, we can You just need to change the input condition in props <template #select-data="{ row }">
<UCheckbox
v-model="row.isSelect"
:disabled="yourCondition" // change your condition here!
@change="selectRow(row)"
/>
</template> |
Description
Enviroment:
Currently, I'm using selection feature of in NuxtUI, but I don't know how to disable checkbox selection for a rows or all rows.
I learn about on Doc's NuxtUI but I don't see it's mention to this problem.
If anyone has a way to handle it, please share with me.
Thank you very much!
The text was updated successfully, but these errors were encountered: