Skip to content

ElectronTouchBarColorPickerConstructorOptions

Unofficial

Options for creating a ElectronTouchBarColorPicker.

Import:

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

Signature:

export interface ElectronTouchBarColorPickerConstructorOptions

Properties

Property Type Description
availableColors? string[] Array of hex color strings to appear as possible colors to select.
selectedColor? string The selected hex color in the picker, i.e #ABCDEF.

Methods

Method Returns Description
change(color) void Callback invoked when a color is selected.