comboButton
comboButton combines an action button with a drop-down list of related actions.
XML Element |
|
|---|---|
Java Class |
|
Basics
An example of comboButton:
<actions>
<action id="save" text="Save" icon="ARCHIVE"/>
</actions>
<layout>
<comboButton id="saveButton" action="save">
<items>
<textItem id="saveDraftItem" text="Save as draft"/>
<textItem id="saveCopyItem" text="Save as copy"/>
<textItem id="savePublishItem" text="Save and publish"/>
</items>
</comboButton>
</layout>
Theme Variants
Use the themeNames attribute to apply one or more theme variants.
| Variant | Description | Supported By |
|---|---|---|
|
Applies the primary button style. |
Aura, Lumo |
|
Applies a lower-emphasis button style. |
Aura, Lumo |
|
Applies an inline button style intended for use inside text content. |
Lumo |
|
Reduces the whitespace around the icon. |
Lumo |
|
Makes the button smaller. |
Aura, Lumo |
|
Makes the button larger. |
Aura, Lumo |
|
Applies the success style. |
Aura, Lumo |
|
Applies the warning style. |
Aura, Lumo |
|
Applies the error style. |
Aura, Lumo |
|
Applies the contrast style. |
Lumo |
Attributes
The following attributes are specific to comboButton:
| Name | Description | Default |
|---|---|---|
Associates an action with the component. |
— |
|
Allows to set the dropdown icon for |
|
|
Sets the icon. |
— |
|
Controls whether the menu opens when the pointer hovers over the component. |
— |
|
Adds CSS class names to the component overlay. |
— |
The following shared attributes are supported by comboButton:
id - alignSelf - classNames - colspan - css - enabled - focusShortcut - height - maxHeight - maxWidth - minHeight - minWidth - tabIndex - text - themeNames - title - visible - whiteSpace - width
Handlers
The following handlers are specific to comboButton:
| Name | Description |
|---|---|
Handles clicks on the component. |
|
Handles double-clicks on the component. |
|
Handles single clicks on the component. |
The following shared handlers are supported by comboButton:
Elements
A comboButton can include actionItem, componentItem, dropdownIcon, icon, separator, and textItem as its nested elements.