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.
Properties/Attributes
You can use both properties and attributes with the same effect. The name of each attribute is listed below the name of the property, if different.
Name
Type
Default Value
Description
accessibleName
accessible-name
string
Defines the accessible ARIA name of the component.
since v1.2.0
layout
TimelineLayout
"Vertical"
Defines the items orientation.
Note: Available options are:
Vertical
Horizontal
since v1.0.0-rc.15
Slots
This Element provides slot(s). This means it can display its child nodes.
Unless targeting the default slot, use the slot attribute to define the destination slot for each child.
Text, along with HTML Elements with no slot attribute, goes the the default slot.
Slot
Type
Description
default
HTMLElement [0..n]
Determines the content of the ui5-timeline.
TimelineItem
Overview
An entry posted on the timeline.
Properties/Attributes
You can use both properties and attributes with the same effect. The name of each attribute is listed below the name of the property, if different.
Name
Type
Default Value
Description
icon
string
""
Defines the icon to be displayed as graphical element within the ui5-timeline-item. SAP-icons font provides numerous options.
See all the available icons in the Icon Explorer.
name
string
""
Defines the name of the item, displayed before the title-text.
nameClickable
name-clickable
boolean
false
Defines if the name is clickable.
subtitleText
subtitle-text
string
""
Defines the subtitle text of the component.
titleText
title-text
string
""
Defines the title text of the component.
Slots
This Element provides slot(s). This means it can display its child nodes.
Unless targeting the default slot, use the slot attribute to define the destination slot for each child.
Text, along with HTML Elements with no slot attribute, goes the the default slot.
Slot
Type
Description
default
Node [0..n]
Determines the description of the ui5-timeline-item.
Events
This Web Component fires semantic events upon user interaction. You can bind to these events with the standard DOM APIs, such as addEventListener.
Name
Description
name-click
Fired when the item name is pressed either with a click/tap or by using the Enter or Space key.
Note: The event will not be fired if the name-clickable attribute is not set.
Theme:Morning Horizon (Light)Evening Horizon (Dark)Horizon High Contrast BlackHorizon High Contrast WhiteQuartz LightQuartz DarkQuartz High Contrast BlackQuartz High Contrast White