ElectronTouchBarButton
Unofficial
A button item for a ElectronTouchBar.
Import:
import type { ElectronTouchBarButton } from '@obsidian-typings/obsidian-public-latest';Signature:
export class ElectronTouchBarButtonProperties
| Property | Type | Description | |
|---|---|---|---|
| accessibilityLabel | string | Description of the button to be read by a screen reader. Read only if no label is set. | |
| backgroundColor | string | Hex code representing the button's current background color. | |
| enabled | boolean | Whether the button is in an enabled state. | |
| icon | ElectronNativeImage | The button's current icon. | |
| iconPosition | 'left' | 'overlay' | 'right' | The position of the icon. | |
| label | string | The button's current text. |
Links to this page: