Release 5.12.0
·
12 commits
to main
since this release
Added
- option
subRowComponentto pass a render-function for a subrow. This will be rendered additionally to the subrows and if not wanted, make sure the subrows are passed as empty arrayd [], following an example:
const { table } = useReactDataTable<T>({
data,
columns,
reactTableOptions: {
enableExpanding: true,
getSubRows: (_) => [],
getRowCanExpand: (row) => row.shouldRenderSubRow,
},
});