Skip to main content
cngx-src documentation

createTimelineSlots

Functionui/timelinev0.1.0

projects/ui/timeline/slot-cascade.ts

Description#

Runs createTimelineSlotBinding over the whole slot set at once, so the organism holds one field instead of eight near-identical ones and each region has exactly one call site.

The casts live here rather than at eight use sites: CngxTimelineTemplates is typed against unknown items because the config is app-wide while the slots are generic. TemplateRef is method-bivariant, so a consumer's concrete template still assigns in.

Signature#

createTimelineSlots(queries: CngxTimelineSlotQueries, templates)

Parameters#

@paramtemplates

Returns#

CngxTimelineSlots