ElectronTouchBarColorPickerConstructorOptions
Unofficial
Options for creating a ElectronTouchBarColorPicker.
Import:
import type { ElectronTouchBarColorPickerConstructorOptions } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface ElectronTouchBarColorPickerConstructorOptionsProperties
| 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. |