ColorGradientMessagesSettingsBuilder

Methods

ContrastRatio(System.String)

Allows customization of the "Contrast ratio" text in the contrast tool.

Parameters

value - System.String

The value for ContrastRatio

RETURNS

Returns the current ColorGradientMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorGradient()
                   .Name("colorGradient")
                   .Messages(msg => msg.ContrastRatio("Contrast ratio"))
                )
             

Fail(System.String)

Allows customization of the "Fail" text in the contrast tool.

Parameters

value - System.String

The value for Fail

RETURNS

Returns the current ColorGradientMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorGradient()
                   .Name("colorGradient")
                   .Messages(msg => msg.Fail("Fail"))
                )
             

Pass(System.String)

Allows customization of the "Pass" text in the contrast tool.

Parameters

value - System.String

The value for Pass

RETURNS

Returns the current ColorGradientMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorGradient()
                   .Name("colorGradient")
                   .Messages(msg => msg.Pass("Pass"))
                )
             

ToggleFormat(System.String)

Allows customization of the toggle format button's title in the Gradient's input editor.

Parameters

value - System.String

The value for ToggleFormat

RETURNS

Returns the current ColorGradientMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorGradient()
                   .Name("colorGradient")
                   .Messages(msg => msg.ToggleFormat("Change format"))
                )
             

Red(System.String)

Allows customization of the rgb's red input's aria-label in the Gradient's input editor.

Parameters

value - System.String

The value for Red

RETURNS

Returns the current ColorGradientMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorGradient()
                   .Name("colorGradient")
                   .Messages(msg => msg.Red("Red"))
                )
             

Green(System.String)

Allows customization of the rgb's green input's aria-label in the Gradient's input editor.

Parameters

value - System.String

The value for Green

RETURNS

Returns the current ColorGradientMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorGradient()
                   .Name("colorGradient")
                   .Messages(msg => msg.Green("Green"))
                )
             

Blue(System.String)

Allows customization of the rgb's blue input's aria-label in the Gradient's input editor.

Parameters

value - System.String

The value for Blue

RETURNS

Returns the current ColorGradientMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorGradient()
                   .Name("colorGradient")
                   .Messages(msg => msg.Blue("Blue"))
                )
             

Alpha(System.String)

Allows customization of the rgb's alpha input's aria-label in the Gradient's input editor.

Parameters

value - System.String

The value for Alpha

RETURNS

Returns the current ColorGradientMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorGradient()
                   .Name("colorGradient")
                   .Messages(msg => msg.Alpha("Alpha"))
                )
             

Hex(System.String)

Allows customization of the hex input's aria-label in the Gradient's input editor.

Parameters

value - System.String

The value for Hex

RETURNS

Returns the current ColorGradientMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorGradient()
                   .Name("colorGradient")
                   .Messages(msg => msg.Hex("HEX"))
                )