State

data class State(progress: Progress, movementTracking: Boolean, interactive: Boolean)

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

State
Link copied to clipboard
js
fun State(progress: Progress = Progress(), movementTracking: Boolean = false, interactive: Boolean = true)
backups the pure values of a slider managed by Progress

Properties

interactive
Link copied to clipboard
js
val interactive: Boolean = true
shows whether the slider is enabled or in disabled / readonly mode.
movementTracking
Link copied to clipboard
js
val movementTracking: Boolean = false
this flag signals the current state of movement, that is whether some sliding action takes place currently.
progress
Link copied to clipboard
js
val progress: Progress
backups the pure values of a slider managed by Progress