electron/docs/api/touch-bar-spacer.md
Samuel Attard 22fb4f85e5
docs: document what experimental means explicitly (#22893)
* docs: document what experimental means explicitly

* Apply suggestions from code review

Co-Authored-By: Jeremy Apthorp <jeremya@chromium.org>

* Update experimental.md

Co-authored-by: Jeremy Apthorp <jeremya@chromium.org>
2020-04-02 09:32:18 -07:00

624 B

Class: TouchBarSpacer

Create a spacer between two items in the touch bar for native macOS applications

Process: Main

new TouchBarSpacer(options)

  • options Object
    • size String (optional) - Size of spacer, possible values are:
      • 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.