DataTable
View Source
Organize any type of data into rows and columns.
10 Results
Carlo McCullough
Huels Group
Cesar Hyatt
O'Connell - Wiza
Kieran Kerluke
MacGyver Inc
Trey Bode
Schmitt, Leannon and Erdman
Nia Reichert
Heathcote, Grant and Quitzon
Jayda Kessler
Welch - Rau
Garett Johnson
Harris - VonRueden
Devin Graham
Jacobi LLC
Ottis Kiehn
Hirthe Inc
Candido Dietrich
Stiedemann and Sons
Abernathy, Kreiger and Trantow
Schneider - Stokes
Batz and Sons
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
Forces the column to always be visible regardless of hiddenColumnIds
.
This is also used to build a list of eligible columns for the ColumnPicker component.
(row: object<mixed>, data: array<object>) => void
Controls how the incoming row data is rendered in a cell. Accepts a string that will be used as an accessor of the row data or a function that returns the row data as well as extra information about the row and column.
Controls the column header rendering. Accepts a string, element, component or function.
Similar to column.header
. Controls the column footer rendering.
Used to identify a column. Required when using onRowSort
or hiddenColumnIds
.
Used to describe a column in ColumnPicker
when header
doesn't display
any text like checkbox or icon.
Determines if a column can be sorted or not. Defaults to false
. See
onColumnSort
below for details on controlling sorting.
Overrides defaultSort.direction for this specific column.
Defaults to ASC
if neither values are provided.
Determines how a sub row cell is rendered. Uses cell as the default accessor if nothing is provided.
Specifies how wide a column is. If omitted, cell will be measured and calculated based on the largest column's cell width.
The minimum size a column must be.
The maximum size a column can be.
Includes sub cells when calculating auto column widths.
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.
Array
Accepts an array of data to be rendered. Data cells are ordered by the columns array.
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.
Function
(rowData: object, rowIndex: number) => number
Used to identify rows. Defaults to rowData.id
if available, otherwise uses rowIndex
.
Function
(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.
Object
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
(rowData: any, rowIndex: number) => void
Callback when a row has been clicked.
Function
(sortedData: array) => void
Callback when a row has been sorted.
signature | Array
({ columnIndex, isSortable }) => object
({ isLink, firstRow, lastRow, evenRow, oddRow, rowData, rowIndex }) => object
({ firstRow, lastRow, firstCell, lastCell, rowData, rowIndex, columnIndex }) => object
({ isLink, firstRow, lastRow, evenRow, oddRow, rowData, rowIndex, parentRowIndex }) => object
({ firstRow, lastRow, firstCell, lastCell, rowData, rowIndex, columnIndex, columnWidth }) => object
Provides the ability to change styles used throughout the DataTable
component.