Dropdown Class
Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI
Select one item from a list. ValueChanged fires when the selection changes.
class Dropdown : public Widget {};
Constructors
Dropdown(Widget parent)
Dropdown(const Widget& parent);
Create a dropdown inside parent.
| Parameter | Type | Description |
|---|---|---|
parent | Widget | Containing widget. |
Properties
Selected
int32_t Selected() const;
void Selected(int32_t value);
0-based index of the currently selected item.
Returns int
Methods
SetOptions(IEnumerable<string> options)
void SetOptions(const IEnumerable<std::string>& options);
Set the items. Internally joined with newline before passing to libendpoint.
Events
ValueChanged
Core::Event<...> ValueChanged;
Fires when the user picks a different item. Runs on the UI thread.