Skip to content

ElectronTouchBarButton

Unofficial

A button item for a ElectronTouchBar.

Import:

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

Signature:

export class ElectronTouchBarButton

Properties

PropertyTypeDescription
accessibilityLabelstringDescription of the button to be read by a screen reader. Read only if no label is set.
backgroundColorstringHex code representing the button's current background color.
enabledbooleanWhether the button is in an enabled state.
iconElectronNativeImageThe button's current icon.
iconPosition'left' | 'overlay' | 'right'The position of the icon.
labelstringThe button's current text.

Links to this page: