dropdownPicker()
Adds a modal menu for selecting a value from a list of options.
dropdownPicker(menu: ModalMenuOptions | ModalMenuOptions.MenuItem[]): this;
Notes
- The button’s current value determines the checked item in the menu; bind using value() or formStateValue().
- The button’s UIButton.text property is set to the selected item’s text.
- The button emits a
MenuItemSelectevent when a menu item is selected.
Parameters
- menu — An instance of ModalMenuOptions, or a list of items.
Return value
The builder instance for chaining.
Related
class ButtonBuilder static
A builder class for creating UIButton instances.
