Name | Attribute | Privacy | Type | Default | Description |
---|---|---|---|---|---|
value | value | public | string | undefined | Value of the option. | |
iconName | icon-name | public | string | undefined | The icon name we want to use, choose from the small icon variants from the ui-icons category from here https://icons.app.sbb.ch. | |
active | active | public | boolean | undefined | Whether the option is currently active. | |
selected | selected | public | boolean | false | Whether the option is selected. |
disabled | disabled | public | boolean | undefined | Whether the option is disabled. |
Name | Privacy | Description | Parameters | Return | Inherited From |
---|---|---|---|---|---|
setGroupLabel | public | Set the option group label (used for a11y) | value: string | void |
Name | Type | Description | Inherited From |
---|---|---|---|
optionSelectionChange | CustomEvent<void> | Emits when the option selection status changes. | |
optionSelected | CustomEvent<void> | Emits when an option was selected by user. |
Name | Description |
---|---|
Use the unnamed slot to add content to the option label. | |
icon | Use this slot to provide an icon. If icon-name is set, a sbb-icon will be used. |