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 focus
  • value (in_out float): The value.
  • minimum (in float): The minimum value (default: 0)
  • maximum (in float): The maximum value (default: 100)
  • orientation (in _enum Orientation: If set to true the Slider is displayed vertical (default: horizontal).

Callbacks

  • changed(/* value */ float): The value was changed.

Example

import { Slider } from "@coop/lib.slint";

export component Example inherits Window {
    width: 200px;
    height: 25px;
    Slider {
        width: parent.width;
        height: parent.height;
        value: 42;
    }
}