Color picker dropdown layer.
Access:
app.colorPicker
app.getModule('colorPicker')
app.invoke('colorPicker.method', …)
open#
Opens a floating color palette anchored to opts.anchor and returns a session handle.
Parameters:
- opts (
any) — options
Returns: ColorPickerSession ({ close, isOpen, getEl })
app.colorPicker.open({ anchor: btn, command: 'inline.color' });
createNode#
Creates an embeddable color picker panel element with rxColorPicker getValue/setValue/destroy API.
Parameters:
- opts (
object) — options
Returns: HTMLElement
app.colorPicker.createNode({ value: '#ff0000', onSelect: (hex) => {} });