Skip to main content
cngx-src documentation

CngxHeaderTpl

Directivev0.1.0

projects/data-display/treetable/column-template.directive.ts

Import#

import { CngxHeaderTpl } from '@cngx/data-display/treetable'

Description#

Marks an <ng-template> as a custom header template for a named column.

<cngx-treetable [tree]="tree">
  <ng-template [cngxHeader]="'name'">
    Full Name <mat-icon>sort</mat-icon>
  </ng-template>
</cngx-treetable>

Metadata#

Index#

Inputs

Inputs#

column#string
input()Required

The column key whose header this template replaces.

default { alias: 'cngxHeader' }