ColorPickerInitOptions
Index
Properties
optionalcolorState
optionaldisabled
Whether the color picker should be disabled or not
optionalheading
A custom heading to-be assigned to the color picker's <h1> element
optionalonExit
A callback to-be executed upon closing the color picker.
optionalonInput
A custom input event listener that will to be triggered by any valid input changes of the underlying interactive elements (hue slider, opacity slider, tint slider or output text).
Type declaration
Parameters
elem: HTMLFieldSetElement
ev: CustomEvent<{ source: hue | output | opacity | tint }>
Returns any
optionalreset
Whether omitting an option will keep its currently configured state or reset it to its default whenever an explicit option is absent
optionalroot
The root element or color-picker fieldset (or ID thereof) in the color picker subscreen; defaults to ColorPicker.ids.root
optionalshape
The dimensions of the color picker screen
A custom color state. Defaults to ItemColorState if not provided.