Kendo.Mvc.UI.ColorPicker
Kendo UI ColorPicker component
Properties
Buttons
Specifies whether the widget should display the Apply / Cancel buttons.
ContrastTool
Enables the contrast tool in the ColorGradient.
CloseOnSelect
Specifies whether selection of a color in the palette view closes the popup. Applied only when buttons are set to false and the currently selected view is palette.
Columns
The number of columns to show in the color dropdown when a pallete is specified. This is automatically initialized for the "basic" and "websafe" palettes. If you use a custom palette then you can set this to some value that makes sense for your colors.
Input
Whether to render the input in the ColorGradient component.
TileSize
The size of a color cell.
Messages
Allows localization of the strings that are used in the widget.
Opacity
Only for the HSV selector. If true, the widget will display the opacity slider. Note that currently in HTML5 the does not support opacity.
Preview
Displays the color preview element and the previously selected color for comparison. With buttons set to false, both elements will update at the same time.
ToolIcon
A CSS class name to display an icon in the color picker button. If specified, the HTML for the element will look like this:
Value
The initially selected color. Note that when initializing the widget from an element, the initial color will be decided by the field instead.
Palette
Defines the palettes that can be used in the color picker.
Format
Defines the format of the gradient input editor.
View
Defines the initially selected view in the ColorPicker.
Size
Sets the size of the component.
Rounded
Sets a value controlling the border radius.
FillMode
Sets a value controlling how the color is applied.
Methods
SerializeSettings
Serialize current instance to Dictionary