DataTable
- Draft
- Not reviewed for accessibility
Name | Type | Default | Description |
---|---|---|---|
aria-describedby | string | Provide an id to an element which uniquely describes this table | |
aria-labelledby | string | Provide an id to an element which uniquely labels this table | |
data | Array<Data> | Provide a collection of the rows which will be rendered inside of the table | |
columns | Array<Column<Data>> | Provide the columns for the table and the fields in | |
cellPadding | 'condensed' | 'normal' | 'spacious' | Specify the amount of space that should be available around the contents of a cell |
Name | Type | Default | Description |
---|---|---|---|
aria-describedby | string | Provide an id to an element which uniquely describes this table | |
aria-labelledby | string | Provide an id to an element which uniquely labels this table | |
children | React.ReactNode | ||
cellPadding | 'condensed' | 'normal' | 'spacious' | Specify the amount of space that should be available around the contents of a cell |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | ||
scope | 'row' | Provide the scope for a table cell, useful for defining a row header using |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | ||
id Required | string |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | ||
id Required | string |
Name | Type | Default | Description |
---|---|---|---|
cellPadding | 'condensed' | 'normal' | 'spacious' | Specify the amount of space that should be available around the contents of a cell | |
columns | Array<Column<Data>> | ||
rows | number | Optionally specify the number of rows which should be included in the skeleton state of the component |
Name | Type | Default | Description |
---|---|---|---|
aria-label Required | string | ||
defaultPageIndex | string | ||
id | string | ||
onChange | ({ pageIndex }: { pageIndex: number }) => void | ||
pageSize | number | ||
totalCount Required | number |
Name | Type | Default | Description |
---|---|---|---|
children Required | React.ReactNode | The content of the dialog. This is usually a message explaining the error. | |
title | string | 'Error' | The title of the dialog. This is usually a short description of the error. |
onRetry | () => void | Event handler called when the user clicks the retry button. | |
onDismiss | () => void | Event handler called when the dialog is dismissed. |
Name | Type | Default | Description |
---|---|---|---|
align | 'start' | 'end' | The horizontal alignment of the column's content | |
field | ObjectPaths<Data> | Optionally provide a field to render for this column. This may be the key of the object or a string that accesses nested objects through | |
header Required | string | (() => React.ReactNode) | Provide the name of the column. This will be rendered as a table header within the table itself | |
maxWidth | React.CSSProperties['maxWidth'] | The maximum width the column can grow to | |
minWidth | React.CSSProperties['minWidth'] | The minimum width the column can grow to | |
renderCell | (data: Data) => React.ReactNode | Provide a custom component or render prop to render the data for this column in a row | |
rowHeader | boolean | Specify if the value of this column for a row should be treated as a row header | |
sortBy | boolean | 'alphanumeric' | 'basic' | 'datetime' | (a: Data, b: Data) => number | Specify if the table should sort by this column and, if applicable, a specific sort strategy or custom sort strategy | |
width | 'grow' | 'growCollapse' | 'auto' | React.CSSProperties['width'] | 'grow' | Controls the width of the column.
|