selector

fun <T> selector(title: String? = null, graphic: Node? = null, items: Collection<T>? = null, prefill: T? = null, dialogAction: ChoiceDialog<T>.() -> Unit? = null): Optional<T>
fun <T> selector(title: String? = null, graphic: Node? = null, vararg items: T, prefill: T? = null, dialogAction: ChoiceDialog<T>.() -> Unit? = null): Optional<T>

Show a selector with title and graphic.

Return

selected item.

Parameters

title

title of the dialog.

graphic

node to be displayed in header.

items

selection choices.

prefill

default choice.

dialogAction

custom dialog action.


inline fun <T> selector(items: Collection<T>? = null, prefill: T? = null, noinline dialogAction: ChoiceDialog<T>.() -> Unit? = null): Optional<T>
inline fun <T> selector(vararg items: T, prefill: T? = null, noinline dialogAction: ChoiceDialog<T>.() -> Unit? = null): Optional<T>

Show a selector.

Return

selected item.

Parameters

items

selection choices.

prefill

default choice.

dialogAction

custom dialog action.