showColorPicker()
showColorPicker(
color,onChanged,onOk?,onCancel?):void
Defined in: ui.ts:1137
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
| Parameter | Type | Default value |
|---|---|---|
color | number | undefined |
onChanged | (color) => void | undefined |
onOk | Function | null | null |
onCancel | Function | null | null |
Returns
void