ColorPicker API Reference

Properties

Name Type Default Value
animation string 'advanced'
editable boolean false
autoCloseDelay number 100
applyValueMode string 'instantly'
columnCount number 8
displayMode string 'default'
disabled boolean false
disableUndo boolean false
dropDownAppendTo any body
dropDownOpenMode string 'default'
dropDownButtonPosition string 'right'
dropDownPosition string 'auto'
dropDownHeight string 'auto'
dropDownOverlay boolean false
dropDownWidth string 'auto'
editAlphaChannel boolean false
enableCustomColors boolean false
gridThemeColors string[] | null null
gridShadeColors string[] | null null
gridStandardColors string[] | null null
hideAlphaEditor boolean false
hideContentToFit string[] RGB,HEX,alpha,previewContainer
hideHEXEditor boolean false
hidePreviewContainer boolean false
hideRGBEditor boolean false
hint string ''
inverted boolean false
label string ''
locale string 'en'
localizeFormatFunction function | null null
messages object Please expand entry to see value
name string ''
opened boolean false
palette string 'default'
paletteColors {name: string, value: string}[] | null null
paletteCustomColors string[] | null null
placeholder string ''
readonly boolean false
resizeIndicator boolean false
resizeMode string 'null'
rightToLeft boolean false
theme string ''
tooltipDisplayMode string 'hex'
unfocusable boolean false
value string 'null'
valueFormat string 'default'
valueDisplayMode string 'default'

Events

Name Type
actionButtonClick Event
cancelButtonClick Event
change Event
close Event
closing Event
dropDownButtonClick Event
okButtonClick Event
open Event
opening Event
resizeStart Event
resizeEnd Event

Methods

Name Type Return Type
open(): void Method void
close(): void Method void