Type Alias: OpenApiTableColumn
OpenApiTableColumn =
object
Defined in: table/useTableModel.ts:28
A column of OpenApiTable. Give only key to keep the default header and
formatting; add header or render to take over either.
Properties
align?
optionalalign?:"left"|"right"
Defined in: table/useTableModel.ts:39
Horizontal alignment. Numbers align right by default.
header?
optionalheader?:React.ReactNode
Defined in: table/useTableModel.ts:32
Header content. Defaults to the schema title, else the humanized key.
key
key:
string
Defined in: table/useTableModel.ts:30
Property of each record shown in this column.
render?
optionalrender?: (args) =>React.ReactNode
Defined in: table/useTableModel.ts:34
Custom cell content. Defaults to formatting driven by the field schema.
Parameters
| Parameter | Type |
|---|---|
args | { item: JsonObject; value: JsonValue | undefined; } |
args.item | JsonObject |
args.value | JsonValue | undefined |
Returns
React.ReactNode