2017-03-03 09:54:46 -08:00
|
|
|
## Class: TouchBarSpacer
|
|
|
|
|
|
|
|
> Create a spacer between two items in the touch bar for native macOS applications
|
|
|
|
|
2018-04-09 17:58:10 -03:00
|
|
|
Process: [Main](../tutorial/application-architecture.md#main-and-renderer-processes)
|
2017-03-03 09:54:46 -08:00
|
|
|
|
2017-03-17 10:38:15 -07:00
|
|
|
### `new TouchBarSpacer(options)` _Experimental_
|
2017-03-03 09:54:46 -08:00
|
|
|
|
|
|
|
* `options` Object
|
|
|
|
* `size` String (optional) - Size of spacer, possible values are:
|
2019-08-01 16:59:26 +02: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`.
|