Skip to main content
cngx-src documentation

TimelineGroup

Interface

projects/common/timeline/grouping.ts

Referenced by#

Import#

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

Description#

One rendered band of a timeline - a calendar bucket plus the items that fall into it, already sorted.

The group carries no label: formatting a date is a locale concern that belongs to the *cngxTimelineDateHeader slot (or the config's groupLabel fallback), not to the presenter. key is stable and collision-free across the built-in groupers, so it doubles as the @for track expression and as the aria-labelledby id seed.

Index#

Instance Properties#

items#unknown
Readonly

Items in this bucket, in the resolved sort direction.

Readonly

Stable bucket identity, e.g. 2026-07-27 for day.

start#Date
Readonly

Local start-of-bucket instant - midnight for day, the Monday for week, the first of the month for month. For 'none' it is the date of the first item in sort order.