Skip to main content

Interface: SdvTanstackTable<TFeatures, TData>

Defined in: packages/sdvtables/src/tanstack-table.ts:74

What tanstackTable returns.

Type Parameters​

TFeatures​

TFeatures extends TableFeatures

TData​

TData extends RowData

Properties​

columnStyle​

columnStyle: Readonly<Record<string, ColumnStyle>>

Defined in: packages/sdvtables/src/tanstack-table.ts:84

Each column's CSS by column id (the spec's key), for its <th> and <td>.


options​

options: object

Defined in: packages/sdvtables/src/tanstack-table.ts:76

For useTable(options) / createTable(options), or spread with your own options (initialState, ...).

columns​

columns: ColumnDef<TFeatures, TData>[]

data​

data: readonly TData[]

features​

features: TFeatures

getRowId?​

optional getRowId?: (row) => string

With the spec's rowKey only.

Parameters​
row​

TData

Returns​

string