SpinnerElement

data class SpinnerElement(val value: String, val onNextValue: () -> Unit, val onPreviousValue: () -> Unit, val hasPreviousValue: Boolean = true, val hasNextValue: Boolean = true) : UiElement.Interactive

An element that can be cycled through values for.

Constructors

Link copied to clipboard
constructor(value: String, onNextValue: () -> Unit, onPreviousValue: () -> Unit, hasPreviousValue: Boolean = true, hasNextValue: Boolean = true)

Properties

Link copied to clipboard
val hasNextValue: Boolean = true

Whether there is a next value to cycle to.

Link copied to clipboard

Whether there is a previous value to cycle to.

Link copied to clipboard
val onNextValue: () -> Unit

Change the current value to its next appropriate value.

Link copied to clipboard

Change the current value to its previous value.

Link copied to clipboard

The current selected value.

Functions

Link copied to clipboard
inline fun <T : UiElement> UiElement.renderWithType(block: T.() -> Unit): RenderResult