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

Madisyn Torp
Lind, Reichel and Orn

Monroe Senger
Bergstrom, Ullrich and Boehm

Dexter Feil
Mayer - Torphy

Muhammad Wehner
Kuphal - Balistreri

Felipe Douglas
Casper - Balistreri

Davin Pacocha
Hansen - Beahan

Raphaelle Thiel
Walker - Beer

Ezekiel Robel
Rau - Will

Mitchel Pfannerstill
Leuschke - Wisozk

Yoshiko Swaniawski
Abshire - Christiansen
Koelpin - Rolfson
Larson, Romaguera and Torp
Fisher, Bosco and Yundt
Props
signature
Provides the ability to change accessible labels used throughout the DataTable
component.
boolean
Controls whether or not sub-rows can be collapsed.
Array
Determines 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.
number
Current visible page number for pagination
Array
Accepts an array of data to be rendered. Data cells are ordered by the columns array.
any
Ref that is passed to useImperativeHandle
which in turn returns `useCollapsibleRows.
boolean
Controls whether or not sub-rows are open by default.
signature
Default 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.
string
Droppable identifier used for internal DragDrop component.
any
Provide 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
.
Record
Accepts 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.
boolean
Puts the table in a loading state and shows a spinner in the middle of the table.
string
Provide an accompanying title to the spinner while loading data.
Function
(sortedColumns: { columnId, direction }) => void
Callback when a column header has been pressed.
Function
onDragEnd: (event) => void
Called at the end of a child Draggable
drag.
Function
onDragStart: (event) => void
Called at the start of a child Draggable
drag.
Function
onDrop: (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.
boolean
This prop controls whether or not the droppable can receive and reorder draggables. If true, draggables may move outside the droppable, but not added.
number
Total available pages for pagination.
signature | Array
Provides the ability to change styles used throughout the DataTable
component.