Documentation / @zerotal/flow-ui / index / TableProps
Interface: TableProps<T>
Defined in: flow-ui/src/components/Table.tsx:36
Type Parameters
T
T = Record<string, unknown>
Indexable
[
key:string]:unknown
Properties
columns
columns:
TableColumn<T>[]
Defined in: flow-ui/src/components/Table.tsx:37
rows
rows:
T[]
Defined in: flow-ui/src/components/Table.tsx:38
sortBy?
optionalsortBy?:string
Defined in: flow-ui/src/components/Table.tsx:39
sortDir?
optionalsortDir?:"asc"|"desc"
Defined in: flow-ui/src/components/Table.tsx:40
params?
optionalparams?:Record<string,string|number|null|undefined>
Defined in: flow-ui/src/components/Table.tsx:42
Extra query params to keep in sort links (e.g. a search term).
rowKey?
optionalrowKey?:string
Defined in: flow-ui/src/components/Table.tsx:44
Field used as the row key (defaults to the first column's key).
hover?
optionalhover?:boolean
Defined in: flow-ui/src/components/Table.tsx:45
groups?
optionalgroups?:TableGroup<T>[]
Defined in: flow-ui/src/components/Table.tsx:47
Render grouped row blocks (with header rows) instead of flat rows.
footerCells?
optionalfooterCells?:unknown[]
Defined in: flow-ui/src/components/Table.tsx:49
A table-level summary row (<tfoot>), cells aligned 1:1 with columns.
filterCells?
optionalfilterCells?:unknown[]
Defined in: flow-ui/src/components/Table.tsx:56
A second header row for per-column controls — filter boxes, say — with
cells aligned 1:1 with columns. Inside <thead> so the controls stay put
when the body scrolls, and so a screen reader reads them as belonging to
their column rather than as a stray first row of data.
class?
optionalclass?:string
Defined in: flow-ui/src/components/Table.tsx:57
theadClass?
optionaltheadClass?:string
Defined in: flow-ui/src/components/Table.tsx:58