colorPicker()
colorPicker(
color,onChanged,colorDiv,onOk,onCancel):HTMLElement
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 | null | Function | undefined |
onCancel | null | Function | null |
Returns
HTMLElement