Slider
#
Properties#
enabled
: (in bool): Defaults to true. You can’t interact with the slider if enabled is false.has-focus
: (out bool): Set to true when the slider currently has the focusvalue
(in-out float): The value.minimum
(in float): The minimum value (default: 0)maximum
(in float): The maximum value (default: 100)orientation
(in enumOrientation
): If set to true the Slider is displayed vertical (default: horizontal).
Callbacks#
changed(float)
: The value was changed
Example#
import { Slider } from "std-widgets.slint";
export component Example inherits Window {
width: 200px;
height: 25px;
Slider {
width: parent.width;
height: parent.height;
value: 42;
}
}