listWidget
inline fun <I> KWidget<*>.listWidget(style: String = defaultStyle, skin: Skin = Scene2DSkin.defaultSkin, init: KListWidget<I>.() -> Unit = {}): KListWidget<I>
Return
a List widget 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 list items.
I
type of items stored by this widget. Usually items are converted to string and displayed.