The event data type.
The event data type.
ReadonlyalignmentSide alignment for events. Defaults to 'alternate'.
ReadonlyariaAccessible label for the timeline container.
ReadonlydatasourceThe datasource providing timeline events.
ReadonlyeventEmitted when a timeline event is clicked.
ReadonlyorientationLayout direction. Defaults to 'vertical'.
ReadonlywithA function that returns the component class to render for a given event. When provided, takes precedence over the projected template.
ProtectedbuildBuild the injector inputs for a dynamically rendered component.
ProtectedbuildBuild template context for an event at a given index.
Protectedresolve
A visual timeline that renders events from a datasource.
Each event is rendered through either:
ng-template) for simple, uniform rendering.withComponent) that returns the Angular component class to instantiate for each event. The resolved component receives the event data via aneventinput.When both are provided,
withComponenttakes precedence.Example
Template-based rendering:
Example
Component-based rendering: