Defined in: createTableHook.tsx:295
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: createTableHook.tsx:302
The features object that was passed to createTableHook.
createAppColumnHelper: <TData>() => AppColumnHelper<TFeatures, TData, TCellComponents, THeaderComponents>;Defined in: createTableHook.tsx:307
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>(tableOptions, selector?) => AppPreactTable<TFeatures, TData, TSelected, TTableComponents, TCellComponents, THeaderComponents>;Defined in: createTableHook.tsx:317
Creates a table with the App* wrapper components and registered tableComponents attached. TData is inferred from the data option.
TData extends RowData
TSelected = TableState<TFeatures>
Omit<TableOptions<TFeatures, TData>, "features">
(state) => TSelected
AppPreactTable<TFeatures, TData, TSelected, TTableComponents, TCellComponents, THeaderComponents>
useCellContext: <TValue>() => Cell_Core<TFeatures, any, TValue> & ExtractFeatureMapTypes<TFeatures, Cell_FeatureMap> & TCellComponents & object;Defined in: createTableHook.tsx:354
Reads the cell provided by the nearest <table.AppCell>, extended with your cellComponents and a context-bound FlexRender.
TValue extends unknown = unknown
Cell_Core<TFeatures, any, TValue> & ExtractFeatureMapTypes<TFeatures, Cell_FeatureMap> & TCellComponents & object
useHeaderContext: <TValue>() => Header_Core<TFeatures, any, TValue> & ExtractFeatureMapTypes<TFeatures, Header_FeatureMap> & THeaderComponents & object;Defined in: createTableHook.tsx:365
Reads the header provided by the nearest <table.AppHeader> / <table.AppFooter>, extended with your headerComponents and a context-bound FlexRender.
TValue extends unknown = unknown
Header_Core<TFeatures, any, TValue> & ExtractFeatureMapTypes<TFeatures, Header_FeatureMap> & THeaderComponents & object
useTableContext: <TData, TSelected>() => AppPreactTable<TFeatures, TData, TSelected, TTableComponents, TCellComponents, THeaderComponents>;Defined in: createTableHook.tsx:339
Reads the table provided by the nearest <table.AppTable>. This is the same extended instance useAppTable returns, so the App* components and your tableComponents are available on it.
Pass TSelected to match the selector you gave useAppTable, so table.state is typed as the selected slice. It cannot be inferred automatically (context does not carry the provider's generics), so it defaults to the full table state, which is correct for the common case of useAppTable without a selector.
TData extends RowData = RowData
TSelected = TableState<TFeatures>
AppPreactTable<TFeatures, TData, TSelected, TTableComponents, TCellComponents, THeaderComponents>