Skip to main content
cngx-src documentation

withTimelineTemplates

Functioncommon/timeline

projects/common/timeline/timeline-config.ts

Description#

Merge app-wide slot template defaults into the cascade. Keys left out keep whatever an earlier feature set, and a per-instance slot directive still wins over anything set here.

One bag rather than a with*Template builder per slot, matching how the select family carries its own slot defaults - the timeline has eight slots and near-identical builders would only add surface.

readonly emptyTpl = viewChild.required<TemplateRef<CngxTimelineEmptyContext>>('emptyTpl', {
  read: TemplateRef,
});

providers: [provideTimelineConfig(withTimelineTemplates({ empty: this.emptyTpl() }))]

Signature#

withTimelineTemplates(templates: CngxTimelineTemplates)

Parameters#

@paramtemplatesCngxTimelineTemplates

Returns#

CngxTimelineConfigFeature