# fixed-data-table-2 **Repository Path**: mirrors_DataDog/fixed-data-table-2 ## Basic Information - **Project Name**: fixed-data-table-2 - **Description**: A React table component designed to allow presenting millions of rows of data. - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-10-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Fixed Data Table 2 for React ![Travic CI status](https://api.travis-ci.org/schrodinger/fixed-data-table-2.svg?branch=master) [![npm version](https://badge.fury.io/js/fixed-data-table-2.svg)](https://www.npmjs.com/package/fixed-data-table-2) ==================================== #### Fixed-Data-Table-2 is a continuation of [facebook/fixed-data-table](https://github.com/facebook/fixed-data-table). The original repo is no longer maintained and has many pull requests awaiting response. FixedDataTable is a React component for building and presenting data in a flexible, powerful way. It supports standard table features, like headers, columns, rows, header groupings, and both fixed-position and scrolling columns. The table was designed to handle thousands of rows of data without sacrificing performance. Scrolling smoothly is a first-class goal of FixedDataTable and it's architected in a way to allow for flexibility and extensibility. Features of FixedDataTable: * Fixed headers and footer * Both fixed and scrollable columns * Handling huge amounts of data * Variable row heights (with adaptive scroll positions) * Column resizing * Performant scrolling * Customizable styling * Jumping to a row or column * Controlled scroll API allows touch support Things the FixedDataTable **doesn't** do: * FixedDataTable does not provide a layout reflow mechanism or calculate content layout information such as width and height of the cell contents. The developer has to provide the layout information to the table instead. * FixedDataTable does not handle sorting of data. Instead it allows the developer to supply data getters that can be sort-, filter-, or tail-loading-aware. * FixedDataTable does not fetch the data (see above) This version of FixedDataTable is maintained by Schrödinger, Inc. It is a forked version of Facebook’s FixedDataTable Repository available [here](https://github.com/facebook/fixed-data-table) available under the BSD License. Contributions and modifications to FixedDataTable are also subject to the BSD License [(see here)](#contributions). Getting started --------------- Install `fixed-data-table-2` using npm. ```shell npm install fixed-data-table-2 ``` Add the default stylesheet `dist/fixed-data-table.css`, then import it into any module. ### Basic Example ```javascript import React from 'react'; import ReactDOM from 'react-dom'; import {Table, Column, Cell} from 'fixed-data-table-2'; // Table data as a list of array. const rows = [ ['a1', 'b1', 'c1'], ['a2', 'b2', 'c2'], ['a3', 'b3', 'c3'], // .... and more ]; // Render your table ReactDOM.render( Col 1} cell={Column 1 static content} width={2000} /> Col 2} cell={} width={1000} /> Col 3} cell={({rowIndex, ...props}) => ( Data for column 3: {rows[rowIndex][2]} )} width={2000} />
, document.getElementById('example') ); ``` Browser Support ------------ | Chrome | Firefox | IE | Safari --- | --- | --- | --- | | Latest | Latest | 11+ | Unsupported* | ###### * Safari may function correct, but we are not actively testing with it Discussion ------------ Join our [discord server](https://discord.gg/bPSWD73) Contributions ------------ Use [GitHub issues](https://github.com/schrodinger/fixed-data-table-2/issues) for requests. We actively welcome pull requests; learn how to [contribute](https://github.com/schrodinger/fixed-data-table-2/blob/master/CONTRIBUTING.md). **BY CONTRIBUTING TO FIXEDDATATABLE, YOU AGREE THAT YOUR CONTRIBUTIONS WILL BE LICENSED UNDER THE BSD LICENSE [(see here)](https://github.com/schrodinger/fixed-data-table-2/blob/master/LICENSE)**. Furthermore, by contributing to FixedDataTable, you hereby grant to Schrödinger and any recipients of your contributions, including but not limited to users of this site, a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, use, make and distribute your contributions and any derivative works under all intellectual property rights including but not limited to copyright and patent. **BY CONTRIBUTING TO FIXEDDATATABLE, YOU REPRESENT AND WARRANT THAT YOU ARE LEGALLY ENTITLED TO GRANT THE FOREGOING LICENSE**. Changelog --------- Changes are tracked as [GitHub releases](https://github.com/schrodinger/fixed-data-table-2/releases). License ------- `FixedDataTable` is [BSD-licensed](https://github.com/schrodinger/fixed-data-table-2/blob/master/LICENSE). We also provide an additional [patent grant](https://github.com/schrodinger/fixed-data-table-2/blob/master/PATENTS).