Combo Box
fun <T> ComboBox( posX: Number = 0, posY: Number = 0, width: Number = DEFAULT_COMBOBOX_WIDTH, height: Number = DEFAULT_COMBOBOX_HEIGHT, font: Font = Font(), prompt: String = "", items: List<T> = emptyList(), formatFunction: (T) -> String? = null)
Content copied to clipboard
Creates a ComboBox.
Parameters
T
Generic ComboBox content.
pos X
Horizontal coordinate for this ComboBox. Default: 0.
pos Y
Vertical coordinate for this ComboBox. Default: 0.
width
Width for this ComboBox. Default: DEFAULT_COMBOBOX_WIDTH.
height
Height for this ComboBox. Default: DEFAULT_COMBOBOX_HEIGHT.
items
The initial selection of items. Default: empty list.
format Function
The formatFunction that is used to represent the items. Default: null
.