Skip to main content

ToolbarSelect

<ui5-toolbar-select> | Since 1.17.0

The ui5-toolbar-select component is used to create a toolbar drop-down list. The items inside the ui5-toolbar-select define the available options by using the ui5-toolbar-select-option component.

ES6 Module Import

import "@ui5/webcomponents/dist/ToolbarSelect.js";

import "@ui5/webcomponents/dist/ToolbarSelectOption.js"; (comes with ui5-toolbar-select)

Properties

width

DescriptionDefines the width of the select.
Note: all CSS sizes are supported - 'percentage', 'px', 'rem', 'auto', etc.
Typestring | undefined
Defaultundefined

valueState

DescriptionDefines the value state of the component.
Type"None" | "Positive" | "Critical" | "Negative" | "Information"
Default"None"

disabled

DescriptionDefines whether the component is in disabled state.
Note: A disabled component is noninteractive.
Typeboolean
Defaultfalse

accessibleName

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

accessibleNameRef

DescriptionReceives id(or many ids) of the elements that label the select.
Typestring | undefined
Defaultundefined

value

DescriptionDefines the value of the component:
Typestring | undefined
Default""
Since2.15.0

Slots

default

DescriptionDefines the component options.
Note: Only one selected option is allowed. If more than one option is defined as selected, the last one would be considered as the selected one.
Note: Use the ui5-toolbar-select-option component to define the desired options.
TypeArray<ToolbarSelectOption>

label

DescriptionDefines the HTML element that will be displayed in the component input part, representing the selected option.
TypeArray<HTMLElement>
Since2.15.0

Events

change

DescriptionFired when the selected option changes.
TypeCustomEvent<ToolbarSelectChangeEventDetail>
ParametersselectedOption: HTMLElement
the selected option.
BubblesYes
CancelableYes - via preventDefault()

open

DescriptionFired after the component's dropdown menu opens.
TypeCustomEvent
BubblesYes
CancelableNo

close

DescriptionFired after the component's dropdown menu closes.
TypeCustomEvent
BubblesNo
CancelableNo

close-overflow

DescriptionFired when the overflow popover is closed.
TypeCustomEvent
Since1.17.0
BubblesYes
CancelableYes - via preventDefault()

Methods

No methods available for this component.

CSS Parts

No CSS parts available for this component.