State

data class State(    val progress: Progress = Progress(),     val movementTracking: Boolean = false,     val interactive: Boolean = true)

This class acts as central UI model for the StateStore and SliderComponent.

See also

dev.fritz2.components.slider.StateStore

Parameters

progress

backups the pure values of a slider managed by Progress

movementTracking

this flag signals the current state of movement, that is whether some sliding action takes place currently. This is important for providing a dedicated event that also offers value changes during the sliding actions and not only for the final reached value.

interactive

shows whether the slider is enabled or in disabled / readonly mode. If `false` no user action (mouse clicking, dragging or keys) will modify the value.

Constructors

Link copied to clipboard
fun State(    progress: Progress = Progress(),     movementTracking: Boolean = false,     interactive: Boolean = true)

Properties

Link copied to clipboard
val interactive: Boolean = true
Link copied to clipboard
val movementTracking: Boolean = false
Link copied to clipboard
val progress: Progress