A drop down combo box that allow list selection only.
var libui = require('libui');
var win = new libui.UiWindow('UiCombobox example', 640, 480, true);
var widget = new libui.UiCombobox();
win.setChild(widget);
win.onClosing(function () {
win.close();
libui.stopLoop();
});
win.show();
libui.startLoop();new libui.UiCombobox()
Create a new UiCombobox object.
See properties implementation for generic details on how properties are implemented.
Whether the widget should be visible or hidden.
Read write.
Defaults to true.
Whether the widget should be enabled or disabled.
Read write.
Defaults to true.
Return or set the current selected item by index.
Append a new text item to the drop down list.
Arguments
- text: String - the text item to append.
Destroy and free the control.
Change the parent of the control
Arguments
- parent: UiControl - the new parent of the widget or null to detach it.
Return whether the control is a top level one or not.
Set the value of property visible
Arguments
- value: Boolean - The new value for
visibleproperty.
Return the value of property visible
Set the value of property enabled
Arguments
- value: Boolean - The new value for
enabledproperty.
Return the value of property enabled
Set the value of property selected
Arguments
- value: Number - The new value for
selectedproperty.
Return the value of property selected
See events implementation for generic details on how events are implemented.
Emitted whenever property selected change.
