Having a Checkbox that allows 3 states (false, indeterminate, true). We are building an app where either the user or the business updates the grid and selects data.
If the user has checked the checkbox we want to output value true, but if the business layer has checked the checkbox we want it to be checked as indeterminate.
If the RowID is on both arrays then true wins over indeterminate.
I took as base the solution to a similar (yet different) issue: https://stackblitz.com/edit/react-deg9yu
But I haven't been able to pass an indeterminate property to the cell, similar to how selected property works.
Hi,
To achieve this behavior, pass a custom聽TableSelectCell聽component to the聽TableSelection plugin's聽cellCompopnent property.
聽
In the following example, the聽state property has two arrays:聽selectionByUser聽specifies items selected by a user;聽selectionAsIndeterminate specifies items that have indeterminate state.
Awesome, it works like a charm! Thanks :)
Maybe all these examples would be useful to be indexed on your website demos.
Congratulations on this excellent library ;)
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.
Most helpful comment
Awesome, it works like a charm! Thanks :)
Maybe all these examples would be useful to be indexed on your website demos.
Congratulations on this excellent library ;)