Colorpicker API

Methods
clear clears the value set in the colorpicker and removes focus
destructor releases the occupied resources
focusValue sets focus on the specified value
getCurrentMode returns the current mode of displaying ColorPicker
getCustomColors returns an array of selected custom colors
getValue returns the code of a selected color
getView returns the currently set view of the colorpicker
paint repaints ColorPicker on a page
setCurrentMode shows colopicker either in the "palette" or in the "picker" mode
setCustomColors sets custom colors that will be displayed at the bottom of the palette
setFocus sets focus on the specified value
setValue selects a color in ColorPicker
setView shows colopicker either in the "palette" or in the "picker" view
Events
apply fires on clicking the "Select" button
cancelClick fires on clicking the "Cancel" button
change fires on changing selected color in ColorPicker
colorChange fires on changing selected color in ColorPicker
modeChange fires on changing the mode of the colorpicker
selectClick fires on clicking the "Select" button
viewChange fires on changing the view of ColorPicker
Properties
css adds custom CSS classes to ColorPicker
customColors shows a section with custom colors in the bottom part of ColorPicker
grayShades defines whether the section with gray shades is displayed in the palette
mode specifies the mode of displaying a colorpicker
palette contains arrays of colors you want to show in a colorpicker
paletteOnly defines whether ColorPicker is shown only the palette mode
pickerOnly defines whether ColorPicker is shown only the picker mode
width sets the width of ColorPicker
Back to top