Table API Reference
- Table
- TableOptions
- TableState
- TableMeta
- TableFeature
- TableFeatures
- StockFeatures
- CoreFeatures
- BaseAtoms
- Atoms
- ExternalAtoms
- constructTable
- tableOptions
- tableFeatures
- getInitialTableState
- OnChangeFn
- Updater
- DebugOptions
- useTable
- createTableHook
- PreactTable
- AppPreactTable
- CreateTableHookOptions
- Subscribe
- FlexRender
- flexRender
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
- stockFeatures
- coreFeatures
- coreCellsFeature
- coreColumnsFeature
- coreHeadersFeature
- coreRowModelsFeature
- coreRowsFeature
- coreTablesFeature
- cellSpanningFeature
- columnFilteringFeature
- columnFacetingFeature
- rowAggregationFeature
- columnGroupingFeature
- columnOrderingFeature
- columnPinningFeature
- columnResizingFeature
- columnSizingFeature
- columnVisibilityFeature
- globalFilteringFeature
- rowExpandingFeature
- rowPaginationFeature
- rowPinningFeature
- rowSelectionFeature
- rowSortingFeature
- filterFns
- sortFns
- aggregationFns
- ColumnFilter
- ColumnPinningState
- ColumnSort
- PaginationState
- RowPinningState
- columnResizingState
- FilterFn
- FilterFns
- FilterMeta
- SortFn
- SortFns
- AggregationFns
- AggregationContext
- AggregationMergeContext
- AggregationFnDef
- AggregationFnDescriptor
- AggregationValueContext
- AggregationValueResult
- constructAggregationFn
- ColumnFiltersState
- ColumnOrderState
- ColumnPinningPosition
- ColumnResizeDirection
- ColumnResizeMode
- ColumnSizingState
- ColumnVisibilityState
- ExpandedState
- GroupingState
- RowPinningPosition
- RowSelectionState
- SortDirection
- SortingState
- AggregationFnOption
- AggregationResult
- FilterFnOption
- SortFnOption
- BuiltInAggregationFn
- BuiltInFilterFn
- BuiltInSortFn
Static Functions API Reference
Subscribe
Call Signature#
function Subscribe<TSourceValue>(props): ComponentChildren;Defined in: Subscribe.ts:98
A Preact component that allows you to subscribe to the table state.
For table.Subscribe from useTable, prefer that API — it uses overloads so JSX contextual typing works. This standalone component uses a union props type.
Type Parameters#
TSourceValue#
TSourceValue
Parameters#
props#
SubscribePropsWithSourceIdentity<TSourceValue>
Returns#
ComponentChildren
Examples#
<Subscribe
source={table.store}
selector={(state) => ({ rowSelection: state.rowSelection })}
>
{({ rowSelection }) => (
<div>Selected rows: {Object.keys(rowSelection).length}</div>
)}
</Subscribe><Subscribe
source={table.atoms.rowSelection}
selector={(rowSelection) => rowSelection[row.id]}
>
{(selected) => <input checked={!!selected} type="checkbox" />}
</Subscribe>Call Signature#
function Subscribe<TSourceValue, TSelected>(props): ComponentChildren;Defined in: Subscribe.ts:101
A Preact component that allows you to subscribe to the table state.
For table.Subscribe from useTable, prefer that API — it uses overloads so JSX contextual typing works. This standalone component uses a union props type.
Type Parameters#
TSourceValue#
TSourceValue
TSelected#
TSelected
Parameters#
props#
SubscribePropsWithSourceWithSelector<TSourceValue, TSelected>
Returns#
ComponentChildren
Examples#
<Subscribe
source={table.store}
selector={(state) => ({ rowSelection: state.rowSelection })}
>
{({ rowSelection }) => (
<div>Selected rows: {Object.keys(rowSelection).length}</div>
)}
</Subscribe><Subscribe
source={table.atoms.rowSelection}
selector={(rowSelection) => rowSelection[row.id]}
>
{(selected) => <input checked={!!selected} type="checkbox" />}
</Subscribe>Call Signature#
function Subscribe<TFeatures, TSelected>(props): ComponentChildren;Defined in: Subscribe.ts:104
A Preact component that allows you to subscribe to the table state.
For table.Subscribe from useTable, prefer that API — it uses overloads so JSX contextual typing works. This standalone component uses a union props type.
Type Parameters#
TFeatures#
TFeatures extends TableFeatures
TSelected#
TSelected
Parameters#
props#
SubscribePropsWithStore<TFeatures, TSelected>
Returns#
ComponentChildren
Examples#
<Subscribe
source={table.store}
selector={(state) => ({ rowSelection: state.rowSelection })}
>
{({ rowSelection }) => (
<div>Selected rows: {Object.keys(rowSelection).length}</div>
)}
</Subscribe><Subscribe
source={table.atoms.rowSelection}
selector={(rowSelection) => rowSelection[row.id]}
>
{(selected) => <input checked={!!selected} type="checkbox" />}
</Subscribe>