Skip to content

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.

<tbw-grid-column field="salary">
<strong *tbwHeaderLabel="let value">{{ value }}</strong>
</tbw-grid-column>

A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.

ngOnDestroy(): void

Static type guard so let value infers correctly.

ngTemplateContextGuard(dir: TbwHeaderLabel, ctx: unknown): ctx
NameTypeDescription
dirTbwHeaderLabel
ctxunknown