showColorPicker()
showColorPicker(
color,onChanged,onOk,onCancel):void
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 | null | Function | null |
onCancel | null | Function | null |
Returns
void