ElectronTouchBarScrubberConstructorOptions
Unofficial
Options for creating a ElectronTouchBarScrubber.
Import:
import type { ElectronTouchBarScrubberConstructorOptions } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface ElectronTouchBarScrubberConstructorOptionsProperties
| Property | Type | Description | |
|---|---|---|---|
| continuous? | boolean | Whether this scrubber is continuous. | |
| items | ElectronScrubberItem[] | An array of items to place in this scrubber. | |
| mode? | 'fixed' | 'free' | The mode of this scrubber. | |
| overlayStyle? | 'background' | 'none' | 'outline' | Selected overlay item style. | |
| selectedStyle? | 'background' | 'none' | 'outline' | Selected item style. | |
| showArrowButtons? | boolean | Whether to show arrow buttons. Only shown if items is non-empty. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| highlight(highlightedIndex) | void | Callback invoked when the user taps any item. | |
| select(selectedIndex) | void | Callback invoked when the user taps an item that was not the last tapped item. |