Skip to main content

SuggestionItemCustom

<ui5-suggestion-item-custom> | Since 2.0.0

The ui5-suggestion-item-custom is type of suggestion item, that can be used to place suggestion items with custom content in the input. The text property is considered only for autocomplete. In case the user needs highlighting functionality, check "@ui5/webcomponents-base/dist/util/generateHighlightedMarkup.js"

Properties

text

DescriptionDefines the text of the ui5-suggestion-item-custom. Note: The text property is considered only for autocomplete.
Typestring | undefined
Defaultundefined

Slots

default

DescriptionDefines the content of the component.
TypeArray<Node>

Events

click

DescriptionFired when the component is activated either with a mouse/tap or by using the Enter or Space key.
Note: The event will not be fired if the disabled property is set to true.
TypeCustomEvent<ListItemBaseClickEventDetail>
Parametersitem: ListItemBase
The activated item.
originalEvent: Event
The original event from the user interaction.
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.