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
ComboBox
Methods
settext(text)
Change the text in the view.
Parameters
string
text
gettext()
Return currently displayed text.
Return
string
Events
ontextchange(self)
Emitted when user has changed text.
Parameters
Entry
self