ColorGradientTagHelper

Example

Razor
<kendo-colorgradient>
    <contrast-tool />
    <messages />
</kendo-colorgradient>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
forModelExpressionAn expression to be evaluated against the current model.
formatColorGradientFormatDefines 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.
on-changeStringThe name of the JavaScript function that will handle the change event. Triggers when a new color has been selected.
on-kendo-keydownStringThe name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the ColorGradient is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
opacityBooleanSpecifies whether we should display the opacity slider to allow selection of transparency.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
sizeComponentSizeSets the size of the component.
valueStringSpecifies the initially selected color.
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.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support