columns
RequiredDescription
The array of column defs to use for the table.
Type
Column<Y, any>[]
Leave Yamada UI a star
StarPagingTable
is a table component with pagination functionality.
Description
The array of column defs to use for the table.
Type
Column<Y, any>[]
Description
Props for table cell component.
Type
CellProps<Y>
Description
Props for table checkbox element.
Type
CheckboxProps<string>
Description
The visual color appearance of the component.
Type
"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"
Default
"gray"
Description
Props for table container element.
Type
HTMLUIProps
Description
Default column options to use for all column defs supplied to the table.
Type
Partial<Column<Y, any>>
Description
The initial page index of the paging table.
Type
number
Default
0
Description
The initial page size of the paging table.
Type
number
Default
20
Description
The initial ids of the selected row.
Type
string[]
Description
The initial sort of the table.
Type
Sort<Y>
Description
The ids that disabled in selection.
Type
string[]
Description
Props for table footer group component.
Type
HeaderGroupProps<Y>
Description
Props for table footer component.
Type
HeaderProps<Y>
Description
Function to format the label used for the options in a select.
Type
(pageSize: number) => string
Description
Props for table header group component.
Type
HeaderGroupProps<Y>
Description
Props for table header component.
Type
HeaderProps<Y>
Description
If true
, highlight the row when the table row is hovered.
Type
boolean
Default
false
Description
If true
, highlight the row when the table row is selected.
Type
boolean
Default
false
Description
If true
, the table cell will be focusable.
Type
boolean
Default
true
Description
The CSS table-layout
property.
Type
"auto" | "fixed" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | [TableLayout | { [x: string]: TableLayout | undefined; ... 5 more ...; xl?: TableLayout | undefined; }, TableLayout | { ...; }] | { ...; } | [...] | { ...; } | ((theme: StyledTheme) => UIValue<...>)
Description
The callback invoked when page index is changed.
Type
(pageIndex: number) => void
Description
The callback invoked when page size is changed.
Type
(pageIndex: number) => void
Description
The callback invoked when row is selected.
Type
(rowSelection: string[]) => void
Description
The callback invoked when table sort is changed.
Type
(sort: Sort<Y>) => void
Description
The callback invoked when a row is clicked.
Type
(row: Row<Y>) => void
Description
The callback invoked when a row is double clicked.
Type
(row: Row<Y>) => void
Description
The page index of the paging table.
Type
number
Description
The page size of the paging table.
Type
number
Description
The list of the page size.
Type
number[]
Default
'[20, 50, 100]'
Description
Props for pagination element.
Type
Omit<PaginationProps,
"page" | "onChange" | "defaultPage" | "total">
Description
Props for paging control element.
Type
HTMLUIProps
Description
The role used for the row header. This is used for accessibility to announce the selected row.
Type
keyof Y
Description
The id used to store the value when selected.
Type
keyof Y
Description
Props for table row component.
Type
RowProps<Y>
Description
If true
, allows selection by clicking on a row.
Type
boolean
Default
false
Description
Props for table select column component.
Type
false | SelectColumn<Y, any>
Description
The ids of the selected row.
Type
string[]
Description
Props for select element.
Type
Omit<SelectProps,
| "children"
| "defaultValue"
| "onChange"
| "data"
| "value"
| "placeholderInOptions">
Description
The size of the PagingTable.
Type
"sm" | "md" | "lg" | "xl"
Default
"md"
Description
The sort of the table.
Type
Sort<Y>
Description
Props for table sort icon element.
Type
IconProps
Description
Props for table tbody element.
Type
TableBodyProps
Description
Props for table tfoot element.
Type
TableFootProps
Description
Props for table thead element.
Type
TableHeadProps
Description
The variant of the PagingTable.
Type
"simple" | "striped" | "unstyled"
Default
"simple"
Description
If true
, display the outer border of the table.
Type
boolean
Default
false
Description
If true
, display line on the columns of the table.
Type
boolean
Default
false
Description
If true
, display the table footer.
Type
boolean
Default
false
Description
If true
, display the checkbox in table footer.
Type
boolean
Default
false
Description
If true
, display the paging control.
Type
boolean
Default
true
Edit this page on GitHub