Class: TouchBarLabel
Class: TouchBarLabel
Create a label in the touch bar for native macOS applications
Prozess: Haupt
Diese Klasse wird nicht aus dem 'electron'
-Modul exportiert. Es ist nur als Rückgabewert anderer Methoden in der Electron-API verfügbar.
new TouchBarLabel(options)
When defining accessibilityLabel
, ensure you have considered macOS best practices.
Instanz Eigenschaften
The following properties are available on instances of TouchBarLabel
:
touchBarLabel.label
A string
representing the label's current text. Changing this value immediately updates the label in the touch bar.
touchBarLabel.accessibilityLabel
A string
representing the description of the label to be read by a screen reader.
touchBarLabel.textColor
A string
hex code representing the label's current text color. Changing this value immediately updates the label in the touch bar.