T
TanStack2y ago
equal-aqua

Is it possible to set an indeterminate selection with the toggleSelectedHandler?

I have a case where I'd like the user to be able to explicitly set some rows to be accepted, some to be rejected, and some to be "do nothing and leave until later." What I have been unable to figure out is if I can easily set an indeterminate state based off of a user click to toggle the state. The examples I've found set indeterminate states based on whether or not all rows are selected, but what I want is the toggleSelectedHandler to toggle through accept (checked), reject (unchecked), or do nothing (indeterminate) on each mouse click. I can then use those 3 states to drive what I render for the user. Is there some way to do this with a custom toggleSelectedHandler? Right now the only way I have found to do this is managing the state myself within the table data.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?