# 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

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

## Methods

### ngOnDestroy()

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

```ts
ngOnDestroy(): void
```

***

### ngTemplateContextGuard()

Static type guard so `let value` infers correctly.

```ts
ngTemplateContextGuard(dir: TbwHeaderLabel, ctx: unknown): ctx
```

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| `dir` | <code><a href="/grid/angular/api/directives/tbwheaderlabel/">TbwHeaderLabel</a></code> |  |
| `ctx` | <code>unknown</code> |  |

***
