Link more touch bar params

This commit is contained in:
Kevin Sawicki 2017-03-08 13:04:55 -08:00
parent 4f817873f1
commit dcfab1b6a0
4 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ Process: [Main](../tutorial/quick-start.md#main-process)
* `label` String (optional) - Button text. * `label` String (optional) - Button text.
* `backgroundColor` String (optional) - Button background color in hex format, * `backgroundColor` String (optional) - Button background color in hex format,
i.e `#ABCDEF`. 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. * `click` Function (optional) - Function to call when the button is clicked.
### Instance Properties ### Instance Properties

View file

@ -7,4 +7,4 @@ Process: [Main](../tutorial/quick-start.md#main-process)
### `new TouchBarGroup(options)` ### `new TouchBarGroup(options)`
* `options` Object * `options` Object
* `items` TouchBar - Items to display as a group. * `items` [TouchBar](touch-bar.md) - Items to display as a group.

View file

@ -8,8 +8,8 @@ Process: [Main](../tutorial/quick-start.md#main-process)
* `options` Object * `options` Object
* `label` String (optional) - Popover button text. * `label` String (optional) - Popover button text.
* `icon` NativeImage (optional) - Popover button icon. * `icon` [NativeImage](native-image.md) (optional) - Popover button icon.
* `items` TouchBar (optional) - Items to display in the popover. * `items` [TouchBar](touch-bar.md) (optional) - Items to display in the popover.
* `showCloseButton` Boolean (optional) - `true` to display a close button * `showCloseButton` Boolean (optional) - `true` to display a close button
on the left of the popover, `false` to not show it. Default is `true`. on the left of the popover, `false` to not show it. Default is `true`.

View file

@ -6,7 +6,7 @@ Process: [Main](../tutorial/quick-start.md#main-process)
### `new TouchBar(items)` ### `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 Creates a new touch bar with the specified items. Use
`BrowserWindow.setTouchBar` to add the `TouchBar` to a window. `BrowserWindow.setTouchBar` to add the `TouchBar` to a window.