@anguless/angulux/timeline
Timeline
import
import { TimelineModule } from '@anguless/angulux/timeline';Basic
Timeline lays out a list of events, with the content slot rendering each one.
Ordered
Processing
Shipped
Delivered
<agl-timeline [value]="events" style="width: 100%"> <ng-template #content let-event> {{ event.status }} </ng-template></agl-timeline>Horizontal
Layout switches the axis; align decides which side the content sits on.
Ordered
Processing
Shipped
Delivered
<agl-timeline [value]="events" layout="horizontal" align="top" style="width: 100%"> <ng-template #content let-event> {{ event.status }} </ng-template></agl-timeline>Opposite
The opposite slot fills the other side of the axis.
15/10/2026 10:30
Ordered
15/10/2026 14:00
Processing
16/10/2026 09:45
Shipped
17/10/2026 08:15
Delivered
<agl-timeline [value]="events" align="alternate" style="width: 100%"> <ng-template #content let-event> {{ event.status }} </ng-template> <ng-template #opposite let-event> <small>{{ event.date }}</small> </ng-template></agl-timeline>API
Generated from the committed corpus, which check:corpus holds to the built library.
Timeline
componentagl-timelineTimeline visualizes a series of chained events.
| Input | Type | Default | Description |
|---|---|---|---|
| value | any[] | undefined | not documented | An array of events to display. |
| style deprecated — since v20.0.0, use `class` instead. | string | undefined | not documented | Style class of the component. |
| align | string | not documented | Position of the timeline bar relative to the content. Valid values are "left", "right" for vertical layout and "top", "bottom" for horizontal layout. |
| layout | 'vertical' | 'horizontal' | not documented | Orientation of the timeline. |
| Template slot | Description |
|---|---|
| <ng-template #content> | Custom content template. |
| <ng-template #opposite> | Custom opposite item template. |
| <ng-template #marker> | Custom marker template. |
Inherited from BaseComponent
inherited| Input | Type | Default | Description |
|---|---|---|---|
| dt | Object | undefined | undefined | Defines scoped design tokens of the component. |
| unstyled | boolean | undefined | undefined | Indicates whether the component should be rendered without styles. |
| pt | PT | undefined | undefined | Used to pass attributes to DOM elements inside the component. Keys become attributes, and a key that names a DOM property is also assigned to that property. Values the browser would execute go through Angular's sanitizer first, as in a template binding: markup in `innerHTML`, `outerHTML` and `srcdoc`, and URLs in `href`, `src`, `action`, `formaction` and `xlink:href`. To write one of those unsanitized on purpose, pass a `DomSanitizer.bypassSecurityTrustHtml` or `bypassSecurityTrustUrl` value. An `on*` key must be a function, and any other value for it is ignored. Keys themselves are applied as given, so let data from users choose values, never keys. |
| pt | PassThroughOptions | undefined | undefined | Used to configure passthrough(pt) options of the component. |