Skip to content

ElectronTouchBarColorPickerConstructorOptions

Unofficial

Options for creating a ElectronTouchBarColorPicker.

Import:

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

Signature:

export interface ElectronTouchBarColorPickerConstructorOptions

Properties

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

Methods

MethodReturnsDescription
change(color)voidCallback invoked when a color is selected.