Class: TouchBarSpacer
Class: TouchBarSpacer
Create a spacer between two items in the touch bar for native macOS applications
Process: 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.
new TouchBarSpacer(options)
-
optionsObject-
sizeString (optional) - Size of spacer, possible values are:-
small- Small space between items. Maps toNSTouchBarItemIdentifierFixedSpaceSmall. This is the default. -
large- Large space between items. Maps toNSTouchBarItemIdentifierFixedSpaceLarge. -
flexible- Take up all available space. Maps toNSTouchBarItemIdentifierFlexibleSpace.
-
-
Instance Properties
The following properties are available on instances of TouchBarSpacer:
touchBarSpacer.size
A String representing the size of the spacer. Can be small, large or flexible.
© GitHub Inc.
Licensed under the MIT license.
https://www.electronjs.org/docs/latest/api/touch-bar-spacer