Logo FS-Skia-UI

Slider Module

Builders for the `Slider` control — a draggable thumb selecting a continuous value along a track.

Functions and values

Function or value Description

create arg1

Full Usage: create arg1

Parameters:
    arg0 : Attr<'msg> list

Returns: Control<'msg>
Type parameters: 'msg

Build a `Slider` from its attributes; pair with `Slider.value` and `onChanged`. The typed `Props` front door (`FS.Skia.UI.Controls.Typed`) is the recommended authoring path.

arg0 : Attr<'msg> list
Returns: Control<'msg>

onChanged arg1

Full Usage: onChanged arg1

Parameters:
    arg0 : float -> 'msg

Returns: Attr<'msg>
Type parameters: 'msg

Emit a `'msg` carrying the new `float` as a `Slider` is dragged (`Attr.onChanged`).

arg0 : float -> 'msg
Returns: Attr<'msg>

value arg1

Full Usage: value arg1

Parameters:
    arg0 : float

Returns: Attr<'msg>
Type parameters: 'msg

Set the `Slider` position (`Attr.value`; a `float` over the control's range, default 0–1). A controlled value driven from model state and reconciled via `onChanged`.

arg0 : float
Returns: Attr<'msg>

Type something to start searching.