Appearance
Home > @liquidrazor/list-display > FieldSchema
FieldSchema interface
Column/field definition for the list.
Signature:
typescript
export interface FieldSchema<TRow = any, TValue = any>Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
(Optional) Text / cell alignment. | |||
(row: TRow, value: TValue, ctx: CellRenderContext<TRow>) => ReactNode | (Optional) Optional custom renderer for the cell. | ||
(row: TRow, value: TValue) => CSSProperties | (Optional) Dynamic style for the cell (e.g. based on status). | ||
FieldFilterConfig<TRow, TValue> | (Optional) Filter configuration for this column. | ||
CSSProperties | (Optional) Optional header cell style. | ||
keyof TRow & string | Property name on the row object. | ||
string | Label shown in the header. | ||
number | string | (Optional) Minimum width for the column. | ||
boolean | (Optional) Whether the column can be sorted. | ||
number | string | (Optional) Preferred width (px, %, etc). |