This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tested with react-data-grid v5.0.4, earlier versions MAY NOT HAVE cellRangeSelection | |
// And it won't show any errors if you try this with an earlier version, so use at least v5.0.4 | |
import React, { Component } from 'react'; | |
import { range } from 'lodash'; | |
import ReactDataGrid from 'react-data-grid'; // Tested with v5.0.4, earlier versions MAY NOT HAVE cellRangeSelection | |
const columns = [ | |
{ key: 'id', name: 'ID', editable: true }, | |
{ key: 'title', name: 'Title', editable: true }, | |
{ key: 'count', name: 'Complete', editable: true }, |