A powerful data table component with built-in pagination, sorting, search capabilities, and row selection. Supports both client-side and server-side data handling with automatic state management.
ID | Name | Email | Role |
|---|---|---|---|
No dataThere are no records to display | |||
The useTable hook accepts a configuration object. When data is provided, it
operates in client-side mode with local filtering, sorting, and pagination. When only url is provided, it operates in server-side mode.
Prop | Type | Default |
|---|---|---|
No dataThere are no records to display | ||
Each column in the columns array should follow this structure:
Prop | Type | Default |
|---|---|---|
No dataThere are no records to display | ||
The Table component accepts these props for customization:
Prop | Type | Default |
|---|---|---|
No dataThere are no records to display | ||
The Table component includes a built-in toolbar with search, rows per page selector, and custom slots:
Prop | Type | Default |
|---|---|---|
No dataThere are no records to display | ||
When row selection is enabled (selectable: true in useTable config), the following props
customize the selection behavior:
Prop | Type | Default |
|---|---|---|
No dataThere are no records to display | ||
The useTable hook returns a TableState object with the following properties and methods:
Prop | Type | Default |
|---|---|---|
No dataThere are no records to display | ||
sortable: true to column config