TbwHeaderLabel
Since v2.5.0
Structural directive that supplies a header label template for a column.
The grid keeps ownership of sort icons, filter buttons, and resize handles; only the label text is replaced.
Example
Section titled “Example”<tbw-grid-column field="salary"> <strong *tbwHeaderLabel="let value">{{ value }}</strong></tbw-grid-column>Methods
Section titled “Methods”ngOnDestroy()
Section titled “ngOnDestroy()”A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
ngOnDestroy(): voidngTemplateContextGuard()
Section titled “ngTemplateContextGuard()”Static type guard so let value infers correctly.
ngTemplateContextGuard(dir: TbwHeaderLabel, ctx: unknown): ctxParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
dir | TbwHeaderLabel | |
ctx | unknown |