Skip to content

Release 5.12.0

Choose a tag to compare

@neolution-ch-release-bot neolution-ch-release-bot released this 15 Sep 00:54
· 12 commits to main since this release

Added

  • option subRowComponent to 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,
  },
});