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
|
Full Usage:
TouchBarSlider(?label, ?value, ?minValue, ?maxValue, ?change)
Parameters:
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
|
Full Usage:
this.label
|
A string representing the slider's current text. Changing this value immediately updates the slider in the touch bar. |
Full Usage:
this.maxValue
|
A number representing the slider's current maximum value. Changing this value immediately updates the slider in the touch bar. |
Full Usage:
this.minValue
|
A number representing the slider's current minimum value. Changing this value immediately updates the slider in the touch bar. |
Full Usage:
this.value
|
A number representing the slider's current value. Changing this value immediately updates the slider in the touch bar. |
fable-electron-docs-api