ComboBox
Choose a single item from a list of items or type a custom value.
| Header | #include "nativeui/combo_box.h" | 
| Namespace | namespace nu | 
| Type | class (RefCounted) | 
| Inherits | Picker | 
The ComboBox behaves differently from Picker that:
- no item is selected by default;
- duplicate items are allowed.
Constructors
ComboBox()
Create a new ComboBox view.
Class properties
const char* kClassName
The class name of this view.
Methods
void SetText(const std::string& text)
Change the text in the view.
Parameters
- const std::string&text
std::string GetText() const
Return currently displayed text.
Return
std::stringEvents
void on_text_change(Entry* self)
Emitted when user has changed text.
Parameters
- Entry*self