Controls / Color Picker / Client Side Programming
The following table lists significant members of the client-side RadColorPicker object:
Name |
Parameters |
Return Type |
Description |
get_selectedColor |
|
String |
Get the current selected color of the palette. |
get_selectedColorTitle |
|
String |
Get the title of the current selected color. |
set_selectedColor |
string, bool |
|
Set the current selected color of the palette. The boolean parameter indicates whether the method should refresh the UI of the control. |
Name |
Parameters |
Return Type |
Description |
getIconContainer |
|
DOM object |
Get the DOM element representing the color icon. |
getPaletteContainer |
|
DOM object |
Get the DOM element representing the color palette |
hidePalette |
|
|
Hides the palette. |
showPalette |
|
|
Show the palette below the color icon. |
Name |
Parameters |
Return Type |
Description |
add_colorChange |
Function |
|
Add a handler to the ColorChange event |
add_colorSelecting |
Function |
|
Add a handler to the ColorSelecting event |
add_loaded |
Function |
|
Add a handler to the loaded event |
remove_colorChange |
Function |
|
Remove a handler from the ColorChange event |
remove_colorSelecting |
Function |
|
Remove a handler from the ColorSelecting event |
remove_loaded |
Function |
|
Remove a handler from the loaded event |