selectBox
inline fun <I> KWidget<*>.selectBox(style: String = defaultStyle, skin: Skin = Scene2DSkin.defaultSkin, init: KSelectBox<I>.() -> Unit = {}): KSelectBox<I>
Return
a SelectBox instance added to this group.
Parameters
style
name of the widget style. Defaults to defaultStyle.
skin
Skin instance that contains the widget style. Defaults to Scene2DSkin.defaultSkin.
init
will be invoked with the widget as "this". Note that in contrary to other widgets, this init function has no parameters. If you need to access Cell or Node that this list is in, use KTable.cell, KTable.inCell, KTree.node or KTree.inNode. Allows to fill select box items.
I
type of items stored by this widget. Usually items are converted to string and displayed.