colorPicker()
colorPicker(
color,onChanged,colorDiv,onOk,onCancel?):HTMLElement
Defined in: ui.ts:1137
Creates a color picker bound to colorDiv: clicking the element opens the picker, and its background updates live to preview the selected color.
Parameters
| Parameter | Type | Default value |
|---|---|---|
color | number | undefined |
onChanged | (color) => void | undefined |
colorDiv | HTMLElement | undefined |
onOk | Function | null | undefined |
onCancel | Function | null | null |
Returns
HTMLElement