mirror of
https://github.com/electron/electron.git
synced 2026-02-11 15:45:04 -05:00
937 B
937 B
Class: TouchBarScrubber
Create a scrubber (a scrollablbe selector)
Process: Main
new TouchBarScrubber(options)
optionsObjectitemsScrubberItem[] - An array of items to place in this scruberonSelectFunction - Called when the user taps an item that was not the last tapped itemselectedIndex- The index of the item the user selected
onHightlightFunction - Called when the user taps any itemhighlightedIndex- The index of the item the user touched
Instance Properties
The following properties are available on instances of TouchBarScrubber:
touchBarSegmentedControl.items
A ScrubberItem[] array representing the items in this scrubber. Updating this value immediately
updates the control in the touch bar. Updating deep properties inside this array does not update the touch bar.