Document more constructor options

This commit is contained in:
Kevin Sawicki 2017-03-14 14:12:41 -07:00
parent 2e0e4e69bb
commit 87c219748d

View file

@ -12,6 +12,11 @@ Process: [Main](../tutorial/quick-start.md#main-process)
* `selectedIndex` - The index of the item the user selected * `selectedIndex` - The index of the item the user selected
* `highlight` Function - Called when the user taps any item * `highlight` Function - Called when the user taps any item
* `highlightedIndex` - The index of the item the user touched * `highlightedIndex` - The index of the item the user touched
* `selectedStyle` String - Selected item style. Defaults to `null`.
* `overlayStyle` String - Selected overlay item style. Defaults to `null`.
* `showArrowButtons` Boolean - Defaults to `false`.
* `mode` String - Defaults to `free`.
* `continuous` Boolean - Defaults to `true`.
### Instance Properties ### Instance Properties
@ -34,7 +39,7 @@ updates the control in the touch bar. Possible values:
#### `touchBarSegmentedControl.overlayStyle` #### `touchBarSegmentedControl.overlayStyle`
A `String` representing the style that selected items in the scrubber should have. This style is overlayed on top A `String` representing the style that selected items in the scrubber should have. This style is overlayed on top
of the scrubber item instead of being placed behind it Updating this value immediately updates the control in the of the scrubber item instead of being placed behind it. Updating this value immediately updates the control in the
touch bar. Possible values: touch bar. Possible values:
* `background` - Maps to `[NSScrubberSelectionStyle roundedBackgroundStyle]` * `background` - Maps to `[NSScrubberSelectionStyle roundedBackgroundStyle]`