Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like http://adazzle.github.io/react-data-grid/
npm install react-data-grid
This library is written with CommonJS modules. If you are using browserify, webpack, or similar, you can consume it like anything else installed from npm.
ReactDataGrid is an advanced JavaScript spreadsheet-like grid component built using React
ReactDataGrid exposes two possible modules, react-data-grid
and react-data-grid/addons
.
What's included in each module depends on ReactDataGrid's version you're using.
We have made a major change to this in v1, so please read below.
- You can import
react-data-grid
orreact-data-grid/addons
depending if you want to have access to the add-ons or not. react-data-grid/addons
containsreact-data-grid
so in 0.X.X you only need to imort this module to get the addon extras and the grid itself.react-data-grid/addons
points toreact-data-grid-with-addons.js
on dist folder.-
- Some external dependencies in
react-data-grid/addons
don't offer support for older browsers like IE8, so you cannot use this on a page with IE* as babel generated script will break (usingdefault
and other issues that break in IE8) - This also includes a much deeper set of dependencies that get bunlded, which in simple use cases, causes a lot of bloat
- Some external dependencies in
We have made a breaking change, so react-data-grid/addons
will not include the grid itself, it is only for importing the addons and you need to also import react-data-grid
This solves for the issues above, as well as laying the groundwork for allowing more fine grained imports.
This will allow you to simply include react-data-grid/addons
to get everything, but also to include single addons (a la lodash)
- If you just want the basic grid import
react-data-grid
- If you want the addons (rich editors, etc) import
react-data-grid
andreact-data-grid/addons
- Both modules are completely independent and can be used separately.
react-data-grid/addons
points to `react-data-grid.ui-plugins.js`` on dist folder.
If you previously had an import for react-data-grid/addons
you will need to now add react-data-grid
as well
- Lightning fast virtual rendering
- Can render hundreds of thousands of rows with no lag
- Keyboard navigation
- Fully editable grid
- Rich cell editors like autocomplete, checkbox and dropdown editors, complete with keyboard navigation
- Custom cell Editors - Easily create your own
- Custom cell Formatters
- Frozen columns
- Resizable columns
- Sorting
- [Filtering] (http://adazzle.github.io/react-data-grid/examples.html#/filterable-sortable-grid)
- [Context Menu] (http://adazzle.github.io/react-data-grid/examples.html#/context-menu)
- Copy and Paste values into other cells
- [Multiple cell updates using cell dragdown] (http://adazzle.github.io/react-data-grid/examples.html#/cell-drag-down)
- [Association of events of individual columns] (http://adazzle.github.io/react-data-grid/examples.html#/column-events)
Check out the examples
directory to see how simple previously complex UI
and workflows are to create.
Please see CONTRIBUTING
This project has been built upon the great work done by Prometheus Research. For the original project, please click here. It is released under MIT