Skip to main content

showColorPicker()

showColorPicker(color, onChanged, onOk?, onCancel?, useAlphaChannel?): void

Defined in: js-api/ui.ts:1295

Opens a standalone color picker modal immediately, without a trigger element. Use when there is no persistent UI element to bind to (e.g. editing a canvas-rendered grid cell).

Parameters​

ParameterTypeDefault value
colornumberundefined
onChanged(color) => voidundefined
onOkCallback | nullnull
onCancelCallback | nullnull
useAlphaChannelbooleanfalse

Returns​

void