ComboBox
Choose a single item from a list of items or type a custom value.
| Module | require("yue.gui") |
| Type | Class |
| Inherits | Picker |
The ComboBox behaves differently from Picker that:
- no item is selected by default;
- duplicate items are allowed.
Class methods
create()
Create a new ComboBox view.
Return
ComboBoxMethods
settext(text)
Change the text in the view.
Parameters
stringtext
gettext()
Return currently displayed text.
Return
stringEvents
ontextchange(self)
Emitted when user has changed text.
Parameters
Entryself