Defined in: packages/lit-table/src/createTableHook.ts:358
TFeatures extends TableFeatures
TTableComponents extends Record<string, ComponentType<any>>
TCellComponents extends Record<string, ComponentType<any>>
THeaderComponents extends Record<string, ComponentType<any>>
appFeatures: TFeatures;Defined in: packages/lit-table/src/createTableHook.ts:365
The features object that was passed to createTableHook.
createAppColumnHelper: <TData>() => AppColumnHelper<TFeatures, TData, TCellComponents, THeaderComponents>;Defined in: packages/lit-table/src/createTableHook.ts:370
A column helper pre-bound to TFeatures and the registered components, so the cell/header/footer render props expose the bound components.
TData extends RowData
AppColumnHelper<TFeatures, TData, TCellComponents, THeaderComponents>
useAppTable: <TData, TSelected>(host, tableOptions, selector?) => object;Defined in: packages/lit-table/src/createTableHook.ts:381
Creates a controller-like object whose table() method returns a table with the App* wrapper functions, a bound FlexRender, and the registered tableComponents attached. TData is inferred from the data option.
TData extends RowData
TSelected = TableState<TFeatures>
ReactiveControllerHost & HTMLElement
Omit<TableOptions<TFeatures, TData>, "features">
(state) => TSelected
object
table: () => AppLitTable<TFeatures, TData, TSelected, TTableComponents, TCellComponents, THeaderComponents>;AppLitTable<TFeatures, TData, TSelected, TTableComponents, TCellComponents, THeaderComponents>
useCellContext: <TValue>(host) => ContextConsumer<Context<symbol, Cell<TFeatures, any, TValue>>, ReactiveControllerHost & HTMLElement>;Defined in: packages/lit-table/src/createTableHook.ts:410
Reads the cell instance from a @lit/context ContextConsumer. lit never provides an extended cell through context, so this is a BARE Cell.
TValue extends unknown = unknown
ReactiveControllerHost & HTMLElement
ContextConsumer<Context<symbol, Cell<TFeatures, any, TValue>>, ReactiveControllerHost & HTMLElement>
useHeaderContext: <TValue>(host) => ContextConsumer<Context<symbol, Header<TFeatures, any, TValue>>, ReactiveControllerHost & HTMLElement>;Defined in: packages/lit-table/src/createTableHook.ts:420
Reads the header instance from a @lit/context ContextConsumer. lit never provides an extended header through context, so this is a BARE Header.
TValue extends unknown = unknown
ReactiveControllerHost & HTMLElement
ContextConsumer<Context<symbol, Header<TFeatures, any, TValue>>, ReactiveControllerHost & HTMLElement>
useTableContext: <TData>(host) => ContextConsumer<Context<symbol, LitTable<TFeatures, TData, any>>, ReactiveControllerHost & HTMLElement>;Defined in: packages/lit-table/src/createTableHook.ts:400
Reads the table provided by the nearest ancestor that called useAppTable, via a @lit/context ContextConsumer. This is the BARE LitTable written to the provider, not the extended AppLitTable.
TData extends RowData = RowData
ReactiveControllerHost & HTMLElement
ContextConsumer<Context<symbol, LitTable<TFeatures, TData, any>>, ReactiveControllerHost & HTMLElement>