Skip to content

v4.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Jun 07:29
· 73 commits to master since this release
7489a29

4.0.0 (2022-06-28)

  • new Virtualized component for opt-in virtualization (see FEATURES/Virtualized)
  • table elements (e.g. table, td, th) instead of div elements, but they can be transformed as div elements by using layout={{ isDiv: true }} (see MISC/Table story)

BREAKING CHANGES

  • The main things that have changed:
  • layout via --data-table-library_grid-template-columns (everything acceptable what a CSS grid-template-columns property would accept) on Table property when using useTheme() instead of width/min-width on each BaseCell (see FEATURES/Layout stories)
  • less internal styling (padding, margin, etc.), it should be done by individual theming instead (see FEATURES/Theme)
  • hide feature: hideKey: string became hide: boolean on each HeaderCell/Cell, hiddenColumns in layout not necessary anymore
  • fixed header feature: layout={{ fixedHeader: true }}
  • controlled layout: layout={{ resizedLayout: string }} and layout={{ onLayoutChange: (gridTemplateColumns: string) => void }} instead of using string[]