Classe : TouchBarSlider
Classe : TouchBarSlider
Créer un curseur dans la touch bar pour les applications native macOS
Processus : Principal
Cette classe n'est pas exportée depuis le module 'electron'
. Il n'est disponible qu'en tant que valeur de retour des autres méthodes dans l'API Electron.
new TouchBarSlider(options)
- Objet
options
label
string (facultatif) - Texte du label.value
Integer (facultatif) - Valeur sélectionnée.minValue
Integer (facultatif) - Valeur minimale.maxValue
Integer (facultatif) - Valeur maximale.change
Function (optional) - Function to call when the slider is changed.newValue
number - La valeur que l'utilisateur a sélectionnée sur le curseur.
Propriétés d'instance
Les propriétés suivantes sont disponibles pour les instances de TouchBarSlider
:
touchBarSlider.label
A string
representing the slider's current text. Changing this value immediately updates the slider in the touch bar.
touchBarSlider.value
A number
representing the slider's current value. Changing this value immediately updates the slider in the touch bar.
touchBarSlider.minValue
A number
representing the slider's current minimum value. Changing this value immediately updates the slider in the touch bar.
touchBarSlider.maxValue
A number
representing the slider's current maximum value. Changing this value immediately updates the slider in the touch bar.