Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
react-data-grid-temp
Advanced tools
Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like
npm install react-data-grid
import DataGrid from 'react-data-grid';
import 'react-data-grid/dist/react-data-grid.css';
const columns = [
{ key: 'id', name: 'ID' },
{ key: 'title', name: 'Title' }
];
const rows = [
{ id: 0, title: 'Example' },
{ id: 1, title: 'Demo' }
];
function App() {
return (
<DataGrid
columns={columns}
rows={rows}
/>
);
}
v7.0.0-canary.17
alpha
to canary
className
style
onRowsChange
onFill
onPaste
onSelectedCellChange
onCellSelected
and onCellDeSelected
propsenableFilterRow
enableHeaderFilters
and column.filterable
propsfilters
onFiltersChange
rows
rowGetter
and rowsCount
propsrowClass
defaultColumnOptions
minColumnWidth
and defaultFormatter
propsgroupBy
rowGrouper
column.cellClass(row)
function support:
column = { ..., cellClass(row) { return string; } }
column.minWidth
column.maxWidth
column.headerCellClass
column.editor
column.editorOptions
column.groupFormatter
scrollToRow
method
scrollToRowIndex
proprdg-light
or rdg-dark
class names.react-data-grid-addons
width
height
cellContentRenderer
contextMenu
enableCellSelect
enableCellAutoFocus
getValidFilterValues
onCellCopyPaste
onSelectedCellRangeChange
onCheckCellIsEditable
column.editable
instead.onGridKeyDown
onGridKeyUp
onRowDoubleClick
onRowsUpdate
onRowsChange
, onFill
, and onPaste
instead.onHeaderDrop
draggableHeaderCell
rowGroupRenderer
onRowExpandToggle
rowsContainer
getSubRowDetails
, onCellExpand
, onDeleteSubRow
, and onAddSubRow
cellMetaData
(from Row
and Cell
props)value
(from column.formatter
props)openCellEditor
, use selectCell
instead.const column = {
key: 'example',
name: 'Example',
- formatter: <CustomFormatter length={5} />
+ formatter: (props) => <CustomFormatter {...props} length={5} />
};
column.events
column.getCellActions
column.getRowMetaData
column.minColumnWidth
column.filterable
column.draggable
cellRangeSelection.{onStart,onUpdate,onEnd}
fromRowId
, toRowId
, and fromRowData
from onRowsUpdate
argumentHeaderCell
minHeight
to height
minWidth
to width
onGridSort
to onSort
emptyRowsView
to emptyRowsRenderer
rowKey
to rowKeyGetter
rowData
to row
fromRowData
to fromRow
idx
to rowIdx
in Row
renderer@babel/preset-env
with core-js
is recommended to enable compatibility for the browsers your project aims to support.summaryRows
types are now independent from rows
column.summaryCellClass
and column.summaryFormatter
propscolumn.formatter
isn't used anymore to render summary row cells.rowKeyGetter
prop is now required for row selection.column.cellClass
does not affect header cells anymore.onScroll
will directly pass the UIEvent rather than the scrollLeft and scrollRight only.main
to alpha
column.cellContentRenderer
summaryRows
prop #1773sortColumn
and sortDirection
props
selectedRows
and onSelectedRowsChange
props
SelectColumn
is now available to import and add a row selection column.react-data-grid-examples
npm install
+ npm start
onCellsDragged
onDragHandleDoubleClick
onRows
onRowUpdated
rowScrollTimeout
toolbar
isScrolling
(from column.formatter
props)ContainerEditorWrapper
EditorBase
setScrollLeft
from Row
and Cell
renderers
setScrollLeft
instance method was previously required on custom Cell and Row renderers and it can be safely removed now.ReactDataGrid
to DataGrid
react-data-grid/dist/react-data-grid.css
react-data-grid-addons
has no default export anymore
import * as DataGridAddons from 'react-data-grid-addons';
insteadreact-data-grid-addons/dist/react-data-grid-addons.css
AutoComplete
editorUtils
FAQs
Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like
The npm package react-data-grid-temp receives a total of 4 weekly downloads. As such, react-data-grid-temp popularity was classified as not popular.
We found that react-data-grid-temp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.