Header menu logo fable-electron-docs-api

TouchBar Type

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

[!WARNING] Electron's built-in classes cannot be subclassed in user code. For more information, see the FAQ.### Class: TouchBar> Create TouchBar layouts for native macOS applicationsProcess: Main

Constructors

Constructor Description

TouchBar(?items, ?escapeItem)

Full Usage: TouchBar(?items, ?escapeItem)

Parameters:
Returns: TouchBar
?items : TouchBarItem[]

?escapeItem : Option<TouchBarItem>

Returns: TouchBar

Instance members

Instance member Description

this.escapeItem

Full Usage: this.escapeItem

A TouchBarItem that will replace the "esc" button on the touch bar when set. Setting to null restores the default "esc" button. Changing this value immediately updates the escape item in the touch bar.

Type something to start searching.