dropdownMenu()
Adds a modal menu that shows when the button is clicked.
dropdownMenu(menu: ModalMenuOptions): this;
Notes
- The button emits a
MenuItemSelectevent when a menu item is selected, with the selected item as data. - The button’s UIButton.value property is set to the selected item’s value.
Parameters
- menu — An instance of ModalMenuOptions.
Return value
The builder instance for chaining.
Related
class ButtonBuilder static
A builder class for creating UIButton instances.
