Companion

Functions

Link copied to clipboard
operator fun <T, M : SpinButtonModel<T>> invoke(model: M, itemVisualizer: ItemVisualizer<T, SpinButton<T, M>>? = null): SpinButton<T, M>

Creates a new SpinButton with values contained in the given model.

operator fun <T> invoke(values: List<T>, itemVisualizer: ItemVisualizer<T, Any>? = null): SpinButton<T, ListSpinButtonModel<T, List<T>>>

Creates a new SpinButton that cycles through the given values.

operator fun invoke(progression: IntProgression, itemVisualizer: ItemVisualizer<Int, Any>? = null): SpinButton<Int, IntSpinButtonModel>

Creates a new SpinButton that has the Int values in the given progression.