Telerik UI for Windows 8 HTML

The RadColorPicker type exposes the following members.

Constructors

  NameDescription
Public methodRadColorPicker
ColorPicker control.

Methods

  NameDescription
Public methodcollapse
collapses the pop-up.
Public methodexpand
expands the pop-up.
Public methodtoggle
Toggles the visual state of the pop-up.

Properties

  NameDescription
Public propertybrightness
Get or set brightness. The values are between 0 and 100. Only for the HSB picker.
Public propertycolor
Like value(), but it returns a Color object. This does not trigger the "change" event.
Public propertydefaultPalette
Get or set the default pre-defined palette of colors. It can be an array of Telerik.Utilities.color objects or of strings that parseColor understands. Only for the Palette picker.
Public propertyelement
Gets the DOM element that hosts this control.
Public propertyinitialized
Indicates whether the control is initialized.
Public propertymode
Get or sets the current mode.
Public propertyopacity
Enable or disable opacity. Only for the HSB and RGB pickers.
Public propertyopacityValue
Get or set opacity. The values are between 0 and 1. This does not trigger the "change" event. Only for the HSB and RGB pickers.
Public propertypalette
Get or set the pre-defined palette of colors. It can be an array of Telerik.Utilities.color objects or of strings that parseColor understands. Only for the Palette picker.
Public propertypreviousColor
Get or set the previous color. Returns the string representation of the previous color.
Public propertysectorWidth
Get or set sector width. It change the width of the control in a way that each sector's width equals the set value. Only for the Palette picker.
Public propertytooltip
Enables or disables tooltips.
Public propertytransitions
Enables or disables transitions.
Public propertyvalue
Get or set the selected color. If no argument is given, this returns the currently selected color as a string in format #FFFFFF when the opacity option is off, or rgba(255, 255, 255, 1) when opacity is requested. If one argument is given, it selects the new color and updates the UI. The argument can be a string in hex, rgb or rbga format, or a Color object. This does not trigger the "change" event. Returns the string representation of the current color.
Public propertywidth
Get or set the width of the pop-up.

Events

  NameDescription
Public eventchange
Fires when a color was selected
Public eventselect
Fires while selecting a color

See Also