Header menu logo fable-electron-docs-api

TouchBarSlider Type

⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ❌

Create a slider in the touch bar for native macOS applicationsProcess: Main This class is not exported from the 'electron' module. It is only available as a return value of other methods in the Electron API.

Constructors

Constructor Description

TouchBarSlider(?label, ?value, ?minValue, ?maxValue, ?change)

Full Usage: TouchBarSlider(?label, ?value, ?minValue, ?maxValue, ?change)

Parameters:
    ?label : string - Label text.
    ?value : int - Selected value.
    ?minValue : int - Minimum value.
    ?maxValue : int - Maximum value.
    ?change : float -> unit - Function to call when the slider is changed.

Returns: TouchBarSlider
?label : string

Label text.

?value : int

Selected value.

?minValue : int

Minimum value.

?maxValue : int

Maximum value.

?change : float -> unit

Function to call when the slider is changed.

Returns: TouchBarSlider

Instance members

Instance member Description

this.label

Full Usage: this.label

A string representing the slider's current text. Changing this value immediately updates the slider in the touch bar.

this.maxValue

Full Usage: this.maxValue

A number representing the slider's current maximum value. Changing this value immediately updates the slider in the touch bar.

this.minValue

Full Usage: this.minValue

A number representing the slider's current minimum value. Changing this value immediately updates the slider in the touch bar.

this.value

Full Usage: this.value

A number representing the slider's current value. Changing this value immediately updates the slider in the touch bar.

Type something to start searching.