Skip to content

ElectronTouchBarSegmentedControl

Unofficial

A segmented control item for a ElectronTouchBar.

Import:

import type { ElectronTouchBarSegmentedControl } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export class ElectronTouchBarSegmentedControl

Properties

Property Type Description
mode 'buttons' | 'multiple' | 'single' The current selection mode of the control.
segments ElectronSegmentedControlSegment[] The segments in this control.
segmentStyle string The control's current segment style.
selectedIndex number The currently selected segment.

Links to this page: