Skip to main content

Interface: TableSpec<Row>

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

Type Parameters​

Row​

Row

Properties​

columns​

readonly columns: readonly ColumnSpec<Row>[]

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


decorations​

readonly decorations: readonly Decoration<Row>[]

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


id?​

readonly optional id?: string

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


interactive?​

readonly optional interactive?: object

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

Phase 5, read by the engine and its renderers (a static renderHTML(spec, rows) ignores it): pageSize is createTable's default page size; hotkeys: false turns off the j/k/h/l/s and / keys (Task 10), leaving the grid's arrow keys, Enter and Space.

hotkeys?​

readonly optional hotkeys?: boolean

pageSize?​

readonly optional pageSize?: number


rowKey?​

readonly optional rowKey?: keyof Row & string

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

J31: the column whose value is a row's link id (String(row[rowKey])); absent → the row's index in the input rows.


theme​

readonly theme: ThemeRef

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