Skip to main content

Option

The ui5-option component defines the content of an option in the ui5-select.

ES6 Module Import​

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

Properties​

selected​

DescriptionDefines the selected state of the component.
Typeboolean
Defaultfalse

disabled​

DescriptionDefines whether the component is in disabled state.
Note: A disabled component is hidden.
Typeboolean
Defaultfalse
Since1.0.0-rc.12

icon​

DescriptionDefines the icon source URI.
Note: SAP-icons font provides numerous built-in icons. To find all the available icons, see the Icon Explorer.
Typestring | null | undefined
Defaultnull

value​

DescriptionDefines the value of the ui5-select inside an HTML Form element when this component is selected. For more information on HTML Form support, see the name property of ui5-select.
Typestring
Default""

additionalText​

DescriptionDefines the additional text displayed at the end of the option element.
Typestring
Default""
Since1.3.0

Slots​

default​

DescriptionDefines the text of the component.
Note: Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.
TypeArray<Node>

Events​

No events available for this component.

Methods​

No methods available for this component.

CSS Parts​

No CSS parts available for this component.