Skip to main content
cngx-src documentation

CngxTimelineRetryButton

Directivev0.1.0WCAG AA

projects/common/timeline/template-slots.ts

Import#

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

Description#

Just the retry control inside the default error surface, for apps that want their own button component without rewriting the error copy.

Whatever renders here has to be operable: the library ships no button component, so a consumer template is responsible for its own type, accessible name and click wiring.

<ng-template cngxTimelineRetryButton let-retry>
  <button type="button" (click)="retry()">Try again</button>
</ng-template>

Metadata#

Index#

Instance Properties#

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

Methods#

ngTemplateContextGuard#CngxTimelineRetryButtonContext
Static
ngTemplateContextGuard(_dir: CngxTimelineRetryButton, ctx: unknown)
@paramctxunknown