ColorPickerTagHelper

Example

Razor
<kendo-colorpicker>
    <contrast-tool />
    <messages />
    <tile-size />
</kendo-colorpicker>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
adaptive-modeAdaptiveModeSpecifies the adaptive rendering of the component.
as-moduleBoolean
buttonsBooleanSpecifies whether the widget should display the Apply / Cancel buttons.
clear-buttonBooleanSpecifies whether the widget should display the 'Clear color' button.
close-on-selectBooleanSpecifies 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.
columnsDoubleThe 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.
fill-modeFillModeSets a value controlling how the color is applied.
forModelExpressionDefines the available input formats in the gradient input editor. Only "hex" and "rgb" are valid values.
formatColorPickerFormatDefines the available input formats in the gradient input editor. Only "hex" and "rgb" are valid values.
formatsString[]Defines the available input formats in the gradient input editor. Only "hex" and "rgb" are valid values.
inputBooleanWhether to render the input in the ColorGradient component.
on-changeStringFires when a color was selected, either by clicking on it (in the simple picker), by clicking ENTER or by pressing "Apply" in the HSV picker.
on-closeStringFires when the picker popup is closing.
on-selectStringFires as a new color is displayed in the drop-down picker. This is not necessarily the "final" value; for example this event triggers when the sliders in the HSV selector are dragged, but then pressing ESC would cancel the selection and the color will revert to the original value.
opacityBooleanOnly for the HSV selector. If true, the widget will display the opacity slider. Note that currently in HTML5 the <input type="color"> does not support opacity.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
has-client-componentBoolean
on-openStringFires when the picker popup is opening.
paletteColorPickerPaletteDefines the palettes that can be used in the color picker.
palette-colorsString[]Defines colors of the palette that can be used in the color picker.
previewBooleanDisplays the color preview element and the previously selected color for comparison. With buttons set to false, both elements will update at the same time.
roundedRoundedSets a value controlling the border radius.
sanitize-idBoolean
script-attributesIDictionary<String,Object>
sizeComponentSizeSets the size of the component.
tool-iconStringA CSS class name to display an icon in the color picker button. If specified, the HTML for the element will look like this:
valueStringThe initially selected color. Note that when initializing the widget from an <input> element, the initial color will be decided by the field instead.
viewColorPickerViewDefines the available views in the ColorPicker. Valid values are "gradient" and "palette".
viewsString[]Defines the available views in the ColorPicker. Valid values are "gradient" and "palette".
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support