slider

inline fun <T : Number, Comparable<T>> slider(model: ConfinedValueModel<T>, orientation: Orientation = Horizontal, noinline config: SliderConfig<T>.() -> Unit = {}): FieldVisualizer<T>(source)

Creates a Slider control that is bound to a Field. This control lets the user select a value within a range.

Parameters

model

for the Slider

orientation

of the Slider

config

for the Slider


inline fun <T : Number, Comparable<T>> slider(range: ClosedRange<T>, orientation: Orientation = Horizontal, noinline config: SliderConfig<T>.() -> Unit = {}): FieldVisualizer<T>(source)

Creates a Slider control that is bound to a Field. This control lets the user select a value within a range.

Parameters

range

for the Slider

orientation

of the Slider

config

for the Slider


fun <T : Number, Comparable<T>> slider(model: ConfinedValueModel<T>, orientation: Orientation = Horizontal, config: SliderConfig<T>.() -> Unit = {}, type: KClass<T>): FieldVisualizer<T>(source)

See also