Skip to main content
cngx-src documentation

CngxTimelineEmpty

Directivev0.1.0

projects/common/timeline/template-slots.ts

Import#

import { CngxTimelineEmpty } from '@cngx/common/timeline'

Description#

The empty surface. Falls back to CNGX_TIMELINE_CONFIG.labels.emptyFallback.

<ng-template cngxTimelineEmpty let-reason>
  @if (reason === 'no-results') { <p>No events match this filter.</p> }
  @else { <p>Nothing has happened yet.</p> }
</ng-template>

Metadata#

Index#

Instance Properties#

templateRef#unknown
Readonly
inject<TemplateRef<CngxTimelineEmptyContext>>(TemplateRef)

Methods#

ngTemplateContextGuard#CngxTimelineEmptyContext
Static
ngTemplateContextGuard(_dir: CngxTimelineEmpty, ctx: unknown)
@paramctxunknown