2017-03-03 17:54:46 +00:00
|
|
|
## Class: TouchBarSpacer
|
|
|
|
|
|
|
|
> Create a spacer between two items in the touch bar for native macOS applications
|
|
|
|
|
2021-06-15 20:50:31 +00:00
|
|
|
Process: [Main](../glossary.md#main-process)<br />
|
|
|
|
_This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._
|
2017-03-03 17:54:46 +00:00
|
|
|
|
2020-04-02 16:32:18 +00:00
|
|
|
### `new TouchBarSpacer(options)`
|
2017-03-03 17:54:46 +00:00
|
|
|
|
|
|
|
* `options` Object
|
|
|
|
* `size` String (optional) - Size of spacer, possible values are:
|
2019-08-01 14:59:26 +00:00
|
|
|
* `small` - Small space between items. Maps to `NSTouchBarItemIdentifierFixedSpaceSmall`. This is the default.
|
|
|
|
* `large` - Large space between items. Maps to `NSTouchBarItemIdentifierFixedSpaceLarge`.
|
|
|
|
* `flexible` - Take up all available space. Maps to `NSTouchBarItemIdentifierFlexibleSpace`.
|
2020-07-16 18:37:38 +00:00
|
|
|
|
|
|
|
### 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`.
|