* feat(table-core): Further improve tree-shaking across features Keep column ordering, column pinning, and row expanding code out of the core bundle, route more cross-feature reads through feature stubs, and stop allocating unused onAfterUpdate wrappers in production memos. * refactor(table-core): register internal cross-feature fns as table APIs Replace init*InstanceData function storage with @internal table APIs registered via assignTableAPIs, route faceting through the getCanGlobalFilter stub, and enforce feature boundaries with import/no-restricted-paths. Regenerate reference docs and fix stale docs config links. ---------
2.5 KiB
| id | title |
|---|---|
| FlexRenderCell | FlexRenderCell |
Defined in: packages/angular-table/src/helpers/flexRenderCell.ts:62
Simplified directive wrapper of *flexRender.
Use this utility component to render headers, cells, or footers with custom markup.
Only one prop (cell, header, or footer) may be passed based on the used selector.
Examples
<td *flexRenderCell="cell; let cell">{{cell}}</td>
<th *flexRenderHeader="header; let header">{{header}}</th>
<th *flexRenderFooter="footer; let footer">{{footer}}</th>
This replaces calling *flexRender directly like this:
<td *flexRender="cell.column.columnDef.cell; props: cell.getContext(); let cell">{{cell}}</td>
<td *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>
Can be imported through FlexRenderCell or FlexRender, with the latter preferred.
import {FlexRender} from '@tanstack/angular-table'
@Component({
// ...
imports: [
FlexRender
]
})
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
TValue
TValue extends CellData
Constructors
Constructor
new FlexRenderCell<TFeatures, TData, TValue>(): FlexRenderCell<TFeatures, TData, TValue>;
Defined in: packages/angular-table/src/helpers/flexRenderCell.ts:132
Returns
FlexRenderCell<TFeatures, TData, TValue>
Properties
cell
readonly cell: InputSignal<Cell<TFeatures, TData, TValue> | undefined>;
Defined in: packages/angular-table/src/helpers/flexRenderCell.ts:67
footer
readonly footer: InputSignal<Header<TFeatures, TData, TValue> | undefined>;
Defined in: packages/angular-table/src/helpers/flexRenderCell.ts:75
header
readonly header: InputSignal<Header<TFeatures, TData, TValue> | undefined>;
Defined in: packages/angular-table/src/helpers/flexRenderCell.ts:71