Dropdown Class
Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI
Select one item from a list. ValueChanged fires when the selection changes.
class Dropdown(Widget): ...
Constructors
Dropdown(Widget parent)
def __init__(self, parent: Widget):
Create a dropdown inside parent.
| Parameter | Type | Description |
|---|---|---|
parent | Widget | Containing widget. |
Properties
Selected
Selected: int # @property / @setter
0-based index of the currently selected item.
Returns int
Methods
SetOptions(IEnumerable<string> options)
def SetOptions(self, options: IEnumerable[str]) -> None:
Set the items. Internally joined with newline before passing to libendpoint.
Events
ValueChanged
ValueChanged # += / -= handler
Fires when the user picks a different item. Runs on the UI thread.