infinite-table / infinite-react

The modern React DataGrid for building apps — faster
https://infinite-table.com
73 stars 5 forks source link

Add isNodeReadOnly to decide when a tree node can be expanded/collapsed via UI #257

Closed radubrehar closed 1 week ago

radubrehar commented 1 week ago

We need isNodeReadOnly, which will decide if a node can be expanded or collapsed via UI.

By default, parent nodes with an empty array for children cannot be expanded/collapsed, but using this fn will allow users to decide and customise this behavior