Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.
This component is still in development and cannot be imported at this time.
Slots
Name
Description
(default)
The option's label.
prefix
Used to prepend an icon or similar element to the menu item.
suffix
Used to append an icon or similar element to the menu item.
Properties
Please note, both DOM properties and HTML attributes are shown in the table below. Unless otherwise specified, the property and attribute names are identical.
Property/Attribute
Reflects
Type
Default
current
boolean
false
selected
boolean
false
value
string
''
disabled
boolean
false
Methods
Name
Description
Arguments
getTextLabel()
Returns a plain text label based on the option's content.
--
Parts
Name
Description
checked-icon
The checked icon, an `<ods-icon>` element.
base
The component's base wrapper.
label
The option's label.
prefix
The container that wraps the prefix.
suffix
The container that wraps the suffix.
Dependencies
This component automatically imports the following dependencies.