Table API
import { Table } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
bordered | boolean | |
children | React.ReactNode | |
compact | boolean | |
emptyText | string | |
headless | boolean | |
hover | boolean | |
loading | boolean | |
multiSelect | boolean | |
onRowSelect | (detail: TableRowSelectDetail) => void | |
onSortChange | (detail: TableSortChangeDetail) => void | |
selectable | boolean | |
sortable | boolean | |
stickyHeader | boolean | |
striped | boolean |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-table>
Table renders the ui-table custom element from @editora/ui-core, which can also be used without React.
Attributes: empty-text, headless, multi-select, selectable, sortable
Events: row-select, sort-change