Skip to main content

ProductSwitchItem

<ui5-product-switch-item> | Since 1.0.0-rc.5

The ui5-product-switch-item web component represents the items displayed in the ui5-product-switch web component.

Note: ui5-product-switch-item is not supported when used outside of ui5-product-switch.

Keyboard Handling

The ui5-product-switch provides advanced keyboard handling. When focused, the user can use the following keyboard shortcuts in order to perform a navigation:

  • [Space] / [Enter] or [Return] - Trigger ui5-click event

ES6 Module Import

import "@ui5/webcomponents-fiori/dist/ProductSwitchItem.js";

Properties

titleText

DescriptionDefines the title of the component.
Typestring | undefined
Defaultundefined
Since1.0.0-rc.15

subtitleText

DescriptionDefines the subtitle of the component.
Typestring | undefined
Defaultundefined
Since1.0.0-rc.15

icon

DescriptionDefines the icon to be displayed as a graphical element within the component.
Example:
<ui5-product-switch-item icon="palette">
See all the available icons in the Icon Explorer.
Typestring | undefined
Defaultundefined

target

DescriptionDefines a target where the targetSrc content must be open.
Available options are:
- _self
- _top
- _blank
- _parent
- _search
Note: By default target will be open in the same frame as it was clicked.
Typestring | undefined
Defaultundefined

targetSrc

DescriptionDefines the component target URI. Supports standard hyperlink behavior.
Typestring | undefined
Defaultundefined

Slots

image

DescriptionDefines an image to be displayed instead of the standard icon.
Note: The image slot takes precedence over the icon property. Note: We recommend using non-interactive ui5-avatar with size S, Square shape and Transparent colorScheme for best alignment.
TypeArray<HTMLElement>
Since2.14.0

Events

click

DescriptionFired when the ui5-product-switch-item is activated either with a click/tap or by using the Enter or Space key.
TypeCustomEvent
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.