Skip to main content
cngx-src documentation

CngxRefreshTpl

Directivev0.1.0

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

Import#

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

Description#

Marks an <ng-template> as the refresh-indicator slot shown below the grid while a bound async state refreshes over rows that stay on screen. Replaces the default "Refreshing" text. The region is decorative (aria-hidden) - the treetable's state live region announces the refresh, so keep the template visual-only.

<cngx-treetable [tree]="tree" [state]="loadState">
  <ng-template cngxRefresh>
    <my-spinner size="small" />
  </ng-template>
</cngx-treetable>

Metadata#