Skip to main content

Interface: ColumnBase<Row, K>

Defined in: packages/sdvtables/src/spec.ts:54

Type Parameters​

Row​

Row

K​

K extends keyof Row & string = keyof Row & string

Properties​

align?​

readonly optional align?: Align

Defined in: packages/sdvtables/src/spec.ts:58


filterable?​

readonly optional filterable?: boolean

Defined in: packages/sdvtables/src/spec.ts:63


key​

readonly key: K

Defined in: packages/sdvtables/src/spec.ts:55


label?​

readonly optional label?: string

Defined in: packages/sdvtables/src/spec.ts:56


sortable?​

readonly optional sortable?: boolean

Defined in: packages/sdvtables/src/spec.ts:62

Read by the headless engine (createTable); accepted and ignored by a static renderHTML.


subheader?​

readonly optional subheader?: string

Defined in: packages/sdvtables/src/spec.ts:57


tooltip?​

readonly optional tooltip?: boolean

Defined in: packages/sdvtables/src/spec.ts:67

reactablefmtr tooltip = TRUE: the cell's formatted value as its title attribute (no tooltip library).


width?​

readonly optional width?: string

Defined in: packages/sdvtables/src/spec.ts:60

CSS width of the column, written on its <th> (e.g. "220px").

Methods​

compare()?​

optional compare(a, b): number

Defined in: packages/sdvtables/src/spec.ts:65

The one non-serializable field (JSON.stringify drops it). A method signature, so a numeric kind's comparator still fits ColumnBase<Row>.

Parameters​

a​

Row[K]

b​

Row[K]

Returns​

number