Skip to main content
zerotal

Documentation


Documentation / @zerotal/flow / index / TableProps

Interface: TableProps<T>

Defined in: flow/src/components.ts:1226

Props for Table: the columns and rows, current sortBy/sortDir, and styling.

Type Parameters

T

T = Record<string, unknown>

Indexable

[key: string]: unknown

Properties

columns

columns: TableColumn<T>[]

Defined in: flow/src/components.ts:1227


rows

rows: T[]

Defined in: flow/src/components.ts:1228


sortBy?

optional sortBy?: string

Defined in: flow/src/components.ts:1229


sortDir?

optional sortDir?: "asc" | "desc"

Defined in: flow/src/components.ts:1230


params?

optional params?: Record<string, string | number | null | undefined>

Defined in: flow/src/components.ts:1232

Extra query params to keep in sort links (e.g. a search term).


rowKey?

optional rowKey?: string

Defined in: flow/src/components.ts:1234

Field used as the row key (defaults to the first column's key).


hover?

optional hover?: boolean

Defined in: flow/src/components.ts:1235


class?

optional class?: string

Defined in: flow/src/components.ts:1236


theadClass?

optional theadClass?: string

Defined in: flow/src/components.ts:1237