DataTable
View Source
Organize any type of data into rows and columns.
10 Results

Michel Schmeler
Mitchell - Heathcote

Raquel Will
Price Group

Tanner Osinski
Hartmann - Wolff

Rogelio Bauch
Wisozk - Johnston

Heather Pfannerstill
D'Amore, Wiza and Ryan

Federico McLaughlin
Stokes - Dietrich

Kirk Wilkinson
Ledner Group

Burdette Erdman
Ziemann, Corkery and Runolfsson

Faustino Trantow
Herzog, Braun and Moore

Dewitt Spencer
Gleason, Goyette and Kshlerin
Upton, Erdman and Becker
Veum - Steuber
Boehm, Bruen and Gusikowski
Props
signatureProvides the ability to change accessible labels used throughout the DataTable component.
booleanControls whether or not sub-rows can be collapsed.
ArrayDetermines how the incoming data is rendered as columns. Please note for optimal performance identity should not change between every render and should be static or memoized.
numberCurrent visible page number for pagination
ArrayAccepts an array of data to be rendered. Data cells are ordered by the columns array.
anyRef that is passed to useImperativeHandle which in turn returns `useCollapsibleRows.
booleanControls whether or not sub-rows are open by default.
signatureDefault sorting for columns. Please note this only affects controls and
requires you to manage sorting the data yourself. See onColumnSort
below for details on controlling sorting.
stringDroppable identifier used for internal DragDrop component.
anyProvide an empty state when the table has no data.
(rowData: Data, rowIndex: number) => number | string(rowData: object, rowIndex: number) => number
Used to identify rows. Defaults to rowData.id if available, otherwise uses rowIndex.
(rowdata: Data) => string(rowData: object) => string
Turns each row or sub-row into an anchor link.
Function(rowData: object) => array<object>
Controls rendering of collapsible sub row content.
Function(bodyRef: object) => void
Used to gain access to the internal bodyRef.
RecordAccepts an object of keyboard shortcuts that can be performed when hovering
a row. e.g. { 'a': ({ rowData }) => addUser(rowData.id) }.
See the mousetrap library for
valid key combinations.
booleanPuts the table in a loading state and shows a spinner in the middle of the table.
stringProvide an accompanying title to the spinner while loading data.
Function(sortedColumns: { columnId, direction }) => void
Callback when a column header has been pressed.
FunctiononDragEnd: (event) => void
Called at the end of a child Draggable drag.
FunctiononDragStart: (event) => void
Called at the start of a child Draggable drag.
FunctiononDrop: (event) => void
This function will be called when a Draggable has been dropped. Returns the onDragEnd event with any Draggable data attached.
ComponentProps['onPageChange'](nextPage: number) => undefined
Callback when new page is requested for pagination.
Function(rowData: any, rowIndex: number, event: React.SyntheticEvent) => void
Callback when a row has been clicked.
Function(sortedData: array) => void
Callback when a row has been sorted.
booleanThis prop controls whether or not the droppable can receive and reorder draggables. If true, draggables may move outside the droppable, but not added.
numberTotal available pages for pagination.
signature | ArrayProvides the ability to change styles used throughout the DataTable component.