Skip to content

ElectronTouchBarScrubberConstructorOptions

Unofficial

Options for creating a ElectronTouchBarScrubber.

Import:

import type { ElectronTouchBarScrubberConstructorOptions } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ElectronTouchBarScrubberConstructorOptions

Properties

PropertyTypeDescription
continuous?booleanWhether this scrubber is continuous.
itemsElectronScrubberItem[]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?booleanWhether to show arrow buttons. Only shown if items is non-empty.

Methods

MethodReturnsDescription
highlight(highlightedIndex)voidCallback invoked when the user taps any item.
select(selectedIndex)voidCallback invoked when the user taps an item that was not the last tapped item.