AppKit.ComboBox

extends AppKit.Control

The Combobox's action is fired whenever an item in the dropdown is selected.

Attributes

Attribute Value (default) Details
placeholder string (undefined) combobox placeholder text
selectedIndex integer (undefined) index of selected item in combobox menu
selectedValue string (undefined) string value of selected item in combobox menu
radio boolean (false) if true, a checkmark is placed by the currently selected item
value string (null) text in the combobox

Methods

Method Name Details
configureMenu method accepts a menu configuration and sets the combo's menu to have this configuration
clearValidationWarning method clears any validation warnings associated with the combobox being shown
validate method accepts a function that validates the combobox by testing its value, returning the error message as a string the combo fails the validation test