Skip to main content

Timeline

<ui5-timeline> | Since 0.8.0

The ui5-timeline component shows entries (such as objects, events, or posts) in chronological order. A common use case is to provide information about changes to an object, or events related to an object. These entries can be generated by the system (for example, value XY changed from A to B), or added manually. There are two distinct variants of the timeline: basic and social. The basic timeline is read-only, while the social timeline offers a high level of interaction and collaboration, and is integrated within SAP Jam.

Header Bar

The Timeline supports a header-bar slot for search, filter, and sort functionality. Use the ui5-timeline-header-bar component in this slot. The Timeline fires search, filter, and sort events that the application should handle by adding, removing, or reordering items in the DOM. The Timeline itself does not perform filtering or sorting — it renders whatever items are provided in the default slot.

Basic Sample

Properties

accessibleName

DescriptionDefines the accessible ARIA name of the component.
Typestring | undefined
Defaultundefined
Since1.2.0

growing

DescriptionDefines whether the Timeline will have growing capability either by pressing a "More" button, or via user scroll. In both cases a load-more event is fired.
Available options:
Button - Displays a button at the end of the Timeline, which when pressed triggers the load-more event.
Scroll -Triggers the load-more event when the user scrolls to the end of the Timeline.
None (default) - The growing functionality is off.
Type"Button" | "None" | "Scroll" (value descriptions in: TimelineGrowingMode)
Default"None"
Since2.7.0

layout

DescriptionDefines the items orientation.
Type"Horizontal" | "Vertical" (value descriptions in: TimelineLayout)
Default"Vertical"
Since1.0.0-rc.15

loading

DescriptionDefines if the component should display a loading indicator over the Timeline.
Typeboolean
Defaultfalse
Since2.7.0

loadingDelay

DescriptionDefines the delay in milliseconds, after which the loading indicator will show up for this component.
Typenumber
Default1000

Slots

default

DescriptionDetermines the content of the ui5-timeline.
TypeArray<ITimelineItem>

headerBar

DescriptionDefines the header bar of the timeline. Use ui5-timeline-header-bar for filtering, sorting, and search functionality.
Note: The Timeline fires search, filter, and sort events when the user interacts with the header bar. The application should handle these events to filter/sort the items.
TypeArray<TimelineHeaderBar>
Since2.22.0

Events

filter

DescriptionFired when the user changes filter selection in the header bar.
Note: The Timeline does not perform filtering. The application should handle this event and add/remove items from the DOM to reflect the filter selection.
TypeCustomEvent<TimelineFilterEventDetail>
ParametersfilterBy: string
The filter category.
selectedOptions: Array<string>
The selected filter option texts.
Since2.22.0
BubblesYes
CancelableNo

load-more

DescriptionFired when the user presses the More button or scrolls to the Timeline's end.
Note: The event will be fired if growing is set to Button or Scroll.
TypeCustomEvent
Since2.7.0
BubblesYes
CancelableNo
DescriptionFired when the user performs a search in the header bar.
Note: The Timeline does not perform filtering. The application should handle this event and add/remove items from the DOM to reflect the search results.
TypeCustomEvent<TimelineSearchEventDetail>
Parametersvalue: string
The search value entered by the user.
Since2.22.0
BubblesYes
CancelableNo

sort

DescriptionFired when the user changes sort order in the header bar.
Note: The Timeline does not perform sorting. The application should handle this event and reorder the items in the DOM accordingly.
TypeCustomEvent<TimelineSortEventDetail>
ParameterssortOrder: string
The sort order ("Ascending" or "Descending").
Since2.22.0
BubblesYes
CancelableNo

Methods

No methods available for this component.

CSS Parts

No CSS parts available for this component.

CSS Custom States

No CSS custom states available for this component.

More Samples

Horizontal layout

Timeline with State

Timeline in Card

Timeline with Groups

Timeline with Growing

Timeline with Filter and Sort

Timeline with Header Bar (Combined)