Skip to main content

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(const Widget& parent);

Create a dropdown inside parent.

ParameterTypeDescription
parentWidgetContaining 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.