Docs
Getting Started
Feature Guides
API Reference
Table API Reference
- Table
- Table_Core
- Table_CoreProperties
- Table_Table
- Table_Columns
- Table_Rows
- Table_Headers
- Table_Plugins
- TableOptions
- TableOptions_All
- TableOptions_Core
- TableOptions_Table
- TableOptions_Columns
- TableOptions_Rows
- TableOptions_Cell
- TableOptions_Plugins
- TableState
- TableState_All
- TableState_Plugins
- TableMeta
- TableFeature
- TableFeatures
- StockFeatures
- CoreFeatures
- constructTable
- constructTableHelper
- createTableStore
- tableOptions
- tableFeatures
- getInitialTableState
- table_setOptions
- table_mergeOptions
- table_reset
- table_getRowModel
- table_getRow
- table_getRowCount
- table_getRowId
- TableHelperOptions
- TableHelper_Core
- OnChangeFn
- Updater
- DebugOptions
- injectTable
- createTableHook
- AngularTable
- AppAngularTable
- CreateTableHookResult
- CreateTableContextOptions
- flexRenderComponent
- FlexRenderComponent
- FlexRenderContent
- FlexRenderInputContent
- FlexRenderComponentProps
- FlexRender
- FlexRenderDirective
- FlexRenderCell
- TanStackTable
- TanStackTableToken
- injectTableContext
- AngularReactivityFlags
Column API Reference
- Column
- Column_Core
- Column_CoreProperties
- Column_Column
- Column_Plugins
- ColumnDef
- ColumnDefBase
- AccessorColumnDef
- DisplayColumnDef
- GroupColumnDef
- ColumnDefTemplate
- ColumnHelper
- ColumnDefaultOptions
- ColumnMeta
- createColumnHelper
- constructColumn
- column_getFlatColumns
- column_getLeafColumns
- column_getIndex
- column_getIsFirstColumn
- column_getIsLastColumn
- column_getSize
- column_getStart
- column_getAfter
- AccessorFn
- DeepKeys
- DeepValue
- AppColumnHelper
Row API Reference
- Row
- Row_Core
- Row_CoreProperties
- Row_Row
- Row_Plugins
- RowData
- RowModel
- constructRow
- row_getValue
- row_getUniqueValues
- row_renderValue
- row_getAllCells
- row_getAllCellsByColumnId
- row_getVisibleCells
- row_getLeftVisibleCells
- row_getCenterVisibleCells
- row_getRightVisibleCells
- row_getAllVisibleCells
- row_getLeafRows
- row_getParentRow
- row_getParentRows
- RowModelFns
- RowModelFns_Core
- RowModelFns_Plugins
- createCoreRowModel
- createFilteredRowModel
- createSortedRowModel
- createGroupedRowModel
- createExpandedRowModel
- createPaginatedRowModel
- createFacetedRowModel
- createFacetedMinMaxValues
- createFacetedUniqueValues
- Table_RowModels_Core
- Table_RowModels_Filtered
- Table_RowModels_Sorted
- Table_RowModels_Grouped
- Table_RowModels_Expanded
- Table_RowModels_Paginated
- Table_RowModels_Faceted
Cell API Reference
- Cell
- Cell_Core
- Cell_CoreProperties
- Cell_Cell
- Cell_ColumnGrouping
- Cell_Plugins
- CellContext
- CellData
- constructCell
- cell_getContext
- cell_getValue
- cell_renderValue
- cell_getIsGrouped
- cell_getIsPlaceholder
- cell_getIsAggregated
- AppCellContext
- TanStackTableCell
- TanStackTableCellToken
- TanStackTableCellContext
- injectTableCellContext
Header API Reference
- Header
- Header_Core
- Header_CoreProperties
- Header_Header
- Header_Plugins
- HeaderGroup
- HeaderGroup_Core
- HeaderGroup_Header
- HeaderGroup_Plugins
- HeaderContext
- constructHeader
- buildHeaderGroups
- header_getContext
- header_getLeafHeaders
- header_getSize
- header_getStart
- header_getResizeHandler
- table_getHeaderGroups
- table_getLeftHeaderGroups
- table_getCenterHeaderGroups
- table_getRightHeaderGroups
- table_getFooterGroups
- table_getLeftFooterGroups
- table_getCenterFooterGroups
- table_getRightFooterGroups
- table_getFlatHeaders
- table_getLeftFlatHeaders
- table_getCenterFlatHeaders
- table_getRightFlatHeaders
- table_getLeafHeaders
- table_getLeftLeafHeaders
- table_getCenterLeafHeaders
- table_getRightLeafHeaders
- AppHeaderContext
- TanStackTableHeader
- TanStackTableHeaderToken
- TanStackTableHeaderContext
- injectTableHeaderContext
- injectFlexRenderContext
Features API Reference
- stockFeatures
- coreFeatures
- coreCellsFeature
- coreColumnsFeature
- coreHeadersFeature
- coreRowModelsFeature
- coreRowsFeature
- coreTablesFeature
- columnFilteringFeature
- columnFacetingFeature
- columnGroupingFeature
- columnOrderingFeature
- columnPinningFeature
- columnResizingFeature
- columnSizingFeature
- columnVisibilityFeature
- globalFilteringFeature
- rowExpandingFeature
- rowPaginationFeature
- rowPinningFeature
- rowSelectionFeature
- rowSortingFeature
- Column_ColumnFiltering
- Column_ColumnFaceting
- Column_ColumnGrouping
- Column_ColumnOrdering
- Column_ColumnPinning
- Column_ColumnResizing
- Column_ColumnSizing
- Column_ColumnVisibility
- Column_GlobalFiltering
- Column_RowSorting
- Table_ColumnFiltering
- Table_ColumnFaceting
- Table_ColumnGrouping
- Table_ColumnOrdering
- Table_ColumnPinning
- Table_ColumnResizing
- Table_ColumnSizing
- Table_ColumnVisibility
- Table_GlobalFiltering
- Table_RowExpanding
- Table_RowPagination
- Table_RowPinning
- Table_RowSelection
- Table_RowSorting
- Row_ColumnFiltering
- Row_ColumnGrouping
- Row_ColumnPinning
- Row_ColumnVisibility
- Row_RowExpanding
- Row_RowPinning
- Row_RowSelection
- Header_ColumnResizing
- Header_ColumnSizing
- TableOptions_ColumnFiltering
- TableOptions_ColumnGrouping
- TableOptions_ColumnOrdering
- TableOptions_ColumnPinning
- TableOptions_ColumnResizing
- TableOptions_ColumnSizing
- TableOptions_ColumnVisibility
- TableOptions_GlobalFiltering
- TableOptions_RowExpanding
- TableOptions_RowPagination
- TableOptions_RowPinning
- TableOptions_RowSelection
- TableOptions_RowSorting
- TableState_ColumnFiltering
- TableState_ColumnGrouping
- TableState_ColumnOrdering
- TableState_ColumnPinning
- TableState_ColumnResizing
- TableState_ColumnSizing
- TableState_ColumnVisibility
- TableState_GlobalFiltering
- TableState_RowExpanding
- TableState_RowPagination
- TableState_RowPinning
- TableState_RowSelection
- TableState_RowSorting
- ColumnDef_ColumnFiltering
- ColumnDef_ColumnGrouping
- ColumnDef_ColumnPinning
- ColumnDef_ColumnResizing
- ColumnDef_ColumnSizing
- ColumnDef_ColumnVisibility
- ColumnDef_GlobalFiltering
- ColumnDef_RowSorting
- ColumnDef_Plugins
- ColumnPinningState
- ColumnSort
- ColumnFilter
- PaginationState
- RowPinningState
- columnResizingState
- ColumnFiltersState
- ColumnOrderState
- ColumnSizingState
- ColumnVisibilityState
- ExpandedState
- GroupingState
- RowSelectionState
- SortingState
- FilterFn
- FilterFns
- FilterMeta
- SortFn
- SortFns
- AggregationFns
- filterFns
- sortFns
- aggregationFns
Enterprise
Basic Examples
Feature Examples
Getting Started
Feature Guides
API Reference
Table API Reference
- Table
- Table_Core
- Table_CoreProperties
- Table_Table
- Table_Columns
- Table_Rows
- Table_Headers
- Table_Plugins
- TableOptions
- TableOptions_All
- TableOptions_Core
- TableOptions_Table
- TableOptions_Columns
- TableOptions_Rows
- TableOptions_Cell
- TableOptions_Plugins
- TableState
- TableState_All
- TableState_Plugins
- TableMeta
- TableFeature
- TableFeatures
- StockFeatures
- CoreFeatures
- constructTable
- constructTableHelper
- createTableStore
- tableOptions
- tableFeatures
- getInitialTableState
- table_setOptions
- table_mergeOptions
- table_reset
- table_getRowModel
- table_getRow
- table_getRowCount
- table_getRowId
- TableHelperOptions
- TableHelper_Core
- OnChangeFn
- Updater
- DebugOptions
- injectTable
- createTableHook
- AngularTable
- AppAngularTable
- CreateTableHookResult
- CreateTableContextOptions
- flexRenderComponent
- FlexRenderComponent
- FlexRenderContent
- FlexRenderInputContent
- FlexRenderComponentProps
- FlexRender
- FlexRenderDirective
- FlexRenderCell
- TanStackTable
- TanStackTableToken
- injectTableContext
- AngularReactivityFlags
Column API Reference
- Column
- Column_Core
- Column_CoreProperties
- Column_Column
- Column_Plugins
- ColumnDef
- ColumnDefBase
- AccessorColumnDef
- DisplayColumnDef
- GroupColumnDef
- ColumnDefTemplate
- ColumnHelper
- ColumnDefaultOptions
- ColumnMeta
- createColumnHelper
- constructColumn
- column_getFlatColumns
- column_getLeafColumns
- column_getIndex
- column_getIsFirstColumn
- column_getIsLastColumn
- column_getSize
- column_getStart
- column_getAfter
- AccessorFn
- DeepKeys
- DeepValue
- AppColumnHelper
Row API Reference
- Row
- Row_Core
- Row_CoreProperties
- Row_Row
- Row_Plugins
- RowData
- RowModel
- constructRow
- row_getValue
- row_getUniqueValues
- row_renderValue
- row_getAllCells
- row_getAllCellsByColumnId
- row_getVisibleCells
- row_getLeftVisibleCells
- row_getCenterVisibleCells
- row_getRightVisibleCells
- row_getAllVisibleCells
- row_getLeafRows
- row_getParentRow
- row_getParentRows
- RowModelFns
- RowModelFns_Core
- RowModelFns_Plugins
- createCoreRowModel
- createFilteredRowModel
- createSortedRowModel
- createGroupedRowModel
- createExpandedRowModel
- createPaginatedRowModel
- createFacetedRowModel
- createFacetedMinMaxValues
- createFacetedUniqueValues
- Table_RowModels_Core
- Table_RowModels_Filtered
- Table_RowModels_Sorted
- Table_RowModels_Grouped
- Table_RowModels_Expanded
- Table_RowModels_Paginated
- Table_RowModels_Faceted
Cell API Reference
- Cell
- Cell_Core
- Cell_CoreProperties
- Cell_Cell
- Cell_ColumnGrouping
- Cell_Plugins
- CellContext
- CellData
- constructCell
- cell_getContext
- cell_getValue
- cell_renderValue
- cell_getIsGrouped
- cell_getIsPlaceholder
- cell_getIsAggregated
- AppCellContext
- TanStackTableCell
- TanStackTableCellToken
- TanStackTableCellContext
- injectTableCellContext
Header API Reference
- Header
- Header_Core
- Header_CoreProperties
- Header_Header
- Header_Plugins
- HeaderGroup
- HeaderGroup_Core
- HeaderGroup_Header
- HeaderGroup_Plugins
- HeaderContext
- constructHeader
- buildHeaderGroups
- header_getContext
- header_getLeafHeaders
- header_getSize
- header_getStart
- header_getResizeHandler
- table_getHeaderGroups
- table_getLeftHeaderGroups
- table_getCenterHeaderGroups
- table_getRightHeaderGroups
- table_getFooterGroups
- table_getLeftFooterGroups
- table_getCenterFooterGroups
- table_getRightFooterGroups
- table_getFlatHeaders
- table_getLeftFlatHeaders
- table_getCenterFlatHeaders
- table_getRightFlatHeaders
- table_getLeafHeaders
- table_getLeftLeafHeaders
- table_getCenterLeafHeaders
- table_getRightLeafHeaders
- AppHeaderContext
- TanStackTableHeader
- TanStackTableHeaderToken
- TanStackTableHeaderContext
- injectTableHeaderContext
- injectFlexRenderContext
Features API Reference
- stockFeatures
- coreFeatures
- coreCellsFeature
- coreColumnsFeature
- coreHeadersFeature
- coreRowModelsFeature
- coreRowsFeature
- coreTablesFeature
- columnFilteringFeature
- columnFacetingFeature
- columnGroupingFeature
- columnOrderingFeature
- columnPinningFeature
- columnResizingFeature
- columnSizingFeature
- columnVisibilityFeature
- globalFilteringFeature
- rowExpandingFeature
- rowPaginationFeature
- rowPinningFeature
- rowSelectionFeature
- rowSortingFeature
- Column_ColumnFiltering
- Column_ColumnFaceting
- Column_ColumnGrouping
- Column_ColumnOrdering
- Column_ColumnPinning
- Column_ColumnResizing
- Column_ColumnSizing
- Column_ColumnVisibility
- Column_GlobalFiltering
- Column_RowSorting
- Table_ColumnFiltering
- Table_ColumnFaceting
- Table_ColumnGrouping
- Table_ColumnOrdering
- Table_ColumnPinning
- Table_ColumnResizing
- Table_ColumnSizing
- Table_ColumnVisibility
- Table_GlobalFiltering
- Table_RowExpanding
- Table_RowPagination
- Table_RowPinning
- Table_RowSelection
- Table_RowSorting
- Row_ColumnFiltering
- Row_ColumnGrouping
- Row_ColumnPinning
- Row_ColumnVisibility
- Row_RowExpanding
- Row_RowPinning
- Row_RowSelection
- Header_ColumnResizing
- Header_ColumnSizing
- TableOptions_ColumnFiltering
- TableOptions_ColumnGrouping
- TableOptions_ColumnOrdering
- TableOptions_ColumnPinning
- TableOptions_ColumnResizing
- TableOptions_ColumnSizing
- TableOptions_ColumnVisibility
- TableOptions_GlobalFiltering
- TableOptions_RowExpanding
- TableOptions_RowPagination
- TableOptions_RowPinning
- TableOptions_RowSelection
- TableOptions_RowSorting
- TableState_ColumnFiltering
- TableState_ColumnGrouping
- TableState_ColumnOrdering
- TableState_ColumnPinning
- TableState_ColumnResizing
- TableState_ColumnSizing
- TableState_ColumnVisibility
- TableState_GlobalFiltering
- TableState_RowExpanding
- TableState_RowPagination
- TableState_RowPinning
- TableState_RowSelection
- TableState_RowSorting
- ColumnDef_ColumnFiltering
- ColumnDef_ColumnGrouping
- ColumnDef_ColumnPinning
- ColumnDef_ColumnResizing
- ColumnDef_ColumnSizing
- ColumnDef_ColumnVisibility
- ColumnDef_GlobalFiltering
- ColumnDef_RowSorting
- ColumnDef_Plugins
- ColumnPinningState
- ColumnSort
- ColumnFilter
- PaginationState
- RowPinningState
- columnResizingState
- ColumnFiltersState
- ColumnOrderState
- ColumnSizingState
- ColumnVisibilityState
- ExpandedState
- GroupingState
- RowSelectionState
- SortingState
- FilterFn
- FilterFns
- FilterMeta
- SortFn
- SortFns
- AggregationFns
- filterFns
- sortFns
- aggregationFns
Enterprise
Basic Examples
Feature Examples
AI/LLM: This documentation page is available in plain markdown format at/table/alpha/docs/framework/angular/reference/classes/FlexRenderDirective.md
Table API Reference
FlexRenderDirective
Class: FlexRenderDirective<TFeatures, TRowData, TValue, TProps>#
Defined in: flexRender.ts:84
Use this utility directive to render headers, cells, or footers with custom markup.
Note: If you are rendering cell, header, or footer without custom context or other props, you can use the FlexRenderCell directive as shorthand instead .
Example#
ts
import {FlexRender} from '@tanstack/angular-table';
@Component({
imports: [FlexRender],
template: `
<td
*flexRender="
cell.column.columnDef.cell;
props: cell.getContext();
let cell"
>
{{cell}}
</td>
<th
*flexRender="
header.column.columnDef.header;
props: header.getContext();
let header"
>
{{header}}
</td>
<td
*flexRender="
footer.column.columnDef.footer;
props: footer.getContext();
let footer"
>
{{footer}}
</td>
`,
})
class App {
}import {FlexRender} from '@tanstack/angular-table';
@Component({
imports: [FlexRender],
template: `
<td
*flexRender="
cell.column.columnDef.cell;
props: cell.getContext();
let cell"
>
{{cell}}
</td>
<th
*flexRender="
header.column.columnDef.header;
props: header.getContext();
let header"
>
{{header}}
</td>
<td
*flexRender="
footer.column.columnDef.footer;
props: footer.getContext();
let footer"
>
{{footer}}
</td>
`,
})
class App {
}Can be imported through FlexRenderDirective or FlexRender import, which the latter is preferred.
Type Parameters#
TFeatures#
TFeatures extends TableFeatures
TRowData#
TRowData extends RowData
TValue#
TValue extends CellData
TProps#
TProps extends | NonNullable<unknown> | CellContext<TFeatures, TRowData, TValue> | HeaderContext<TFeatures, TRowData, TValue>
Constructors#
Constructor#
ts
new FlexRenderDirective<TFeatures, TRowData, TValue, TProps>(): FlexRenderDirective<TFeatures, TRowData, TValue, TProps>;new FlexRenderDirective<TFeatures, TRowData, TValue, TProps>(): FlexRenderDirective<TFeatures, TRowData, TValue, TProps>;Defined in: flexRender.ts:109
Returns#
FlexRenderDirective<TFeatures, TRowData, TValue, TProps>
Properties#
content#
ts
readonly content: InputSignal<FlexRenderInputContent<TProps>>;readonly content: InputSignal<FlexRenderInputContent<TProps>>;Defined in: flexRender.ts:93
injector#
ts
readonly injector: InputSignal<Injector>;readonly injector: InputSignal<Injector>;Defined in: flexRender.ts:102
props#
ts
readonly props: InputSignal<TProps>;readonly props: InputSignal<TProps>;Defined in: flexRender.ts:98
