Link more touch bar params
This commit is contained in:
parent
4f817873f1
commit
dcfab1b6a0
4 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ Process: [Main](../tutorial/quick-start.md#main-process)
|
|||
* `label` String (optional) - Button text.
|
||||
* `backgroundColor` String (optional) - Button background color in hex format,
|
||||
i.e `#ABCDEF`.
|
||||
* `icon` NativeImage (optional) - Button icon.
|
||||
* `icon` [NativeImage](native-image.md) (optional) - Button icon.
|
||||
* `click` Function (optional) - Function to call when the button is clicked.
|
||||
|
||||
### Instance Properties
|
||||
|
|
|
@ -7,4 +7,4 @@ Process: [Main](../tutorial/quick-start.md#main-process)
|
|||
### `new TouchBarGroup(options)`
|
||||
|
||||
* `options` Object
|
||||
* `items` TouchBar - Items to display as a group.
|
||||
* `items` [TouchBar](touch-bar.md) - Items to display as a group.
|
||||
|
|
|
@ -8,8 +8,8 @@ Process: [Main](../tutorial/quick-start.md#main-process)
|
|||
|
||||
* `options` Object
|
||||
* `label` String (optional) - Popover button text.
|
||||
* `icon` NativeImage (optional) - Popover button icon.
|
||||
* `items` TouchBar (optional) - Items to display in the popover.
|
||||
* `icon` [NativeImage](native-image.md) (optional) - Popover button icon.
|
||||
* `items` [TouchBar](touch-bar.md) (optional) - Items to display in the popover.
|
||||
* `showCloseButton` Boolean (optional) - `true` to display a close button
|
||||
on the left of the popover, `false` to not show it. Default is `true`.
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ Process: [Main](../tutorial/quick-start.md#main-process)
|
|||
|
||||
### `new TouchBar(items)`
|
||||
|
||||
* `items` (TouchBarButton | TouchBarColorPicker | TouchBarGroup | TouchBarLabel | TouchBarPopOver | TouchBarSlider | TouchBarSpacer)[]
|
||||
* `items` ([TouchBarButton](touch-bar-button.md) | [TouchBarColorPicker](touch-bar-color-picker.md) | [TouchBarGroup](touch-bar-group.md) | [TouchBarLabel](touch-bar-label.md) | [TouchBarPopover](touch-bar-popover.md) | [TouchBarSlider](touch-bar-slider.md) | [TouchBarSpacer](touch-bar-spacer.md))[]
|
||||
|
||||
Creates a new touch bar with the specified items. Use
|
||||
`BrowserWindow.setTouchBar` to add the `TouchBar` to a window.
|
||||
|
|
Loading…
Reference in a new issue