infinite-table / infinite-react

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

Provide more information on rows during row rendering #74

Closed roblotter closed 2 years ago

roblotter commented 2 years ago

InfiniteTableRowInfo can have different object shape depending on the presence or absence of grouping.

You can use dataSourceHasGrouping: boolean as a discriminator to determine the shape of the object, to know if the dataSource had grouping or not. Furthermore, for when the dataSource has grouping, you can use isGroupRow: boolean to discriminate between group rows vs normal rows.

Now rowInfo has the following props:

roblotter commented 2 years ago

Shipped in 0.3.0