advanced-data-tables-demo icon indicating copy to clipboard operation
advanced-data-tables-demo copied to clipboard

Demos for combining React Virtualized and FixedDataTable

trafficstars

React Virtualized + FixedDataTable

Examples of how to combine React Virtualized and FixedDataTable to build a truly flexible and customizable data table in React.

table in action

Live Playground

For examples of the table in action, go to https://commercetools.github.io/advanced-data-tables-demo/ 👀✨.

OR

To run that demo on your own computer:

$ git clone [email protected]:commercetools/modern-data-tables-demo.git
$ cd modern-data-tables-demo
$ npm install
$ npm start
$ open http://localhost:9000/

Components

This repository contains some important components that the table is made up of:

  • Table: composes CellMeasurer, TableMeasurer and FixedDataTable.
  • TableMeasurer: Is used for providing FixedDataTable with static column width and row height values. Uses CellMeasurer's measuring callbacks to figure out the column widths and row heights of the whole table.
  • BodyCell: Used for rendering a cell. Decoupled from Table.
  • SortHeaderCell: Used to render the column header cell when a column is sortable.