Skip to content

Replacing checkbox with Mantine's Switch in DataTable selection #679

Answered by icflorescu
micihime asked this question in Q&A
Discussion options

You must be logged in to vote

The embedded Mantine DataTable selection mechanism relies on the Mantine Checkbox's indeterminate state property.

I suggest you to implement your own solution to handle selection and I think you're on the right track.
There's no need to use CSS to hide the checkbox columns, however.
The best way to do this would be to simply handle selection state outside the component and use custom cells rendering switches to display and alter it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by icflorescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #653 on November 29, 2024 10:43.