ColorPickerMessagesSettingsBuilder

Methods

Apply(System.String)

Allows customization of the "Apply" button text.

Parameters

value - System.String

The value for Apply

RETURNS

Returns the current ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.Apply("Apply"))
            )
             

Cancel(System.String)

Allows customization of the "Cancel" button text.

Parameters

value - System.String

The value for Cancel

RETURNS

Returns the current ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.Cancel("Cancel"))
            )
             

ClearColor(System.String)

Allows customization of the Clear Color button label.

Parameters

value - System.String

The value for ClearColor

RETURNS

Returns the current ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.ClearColor("ClearColor"))
            )
             

PreviewInput(System.String)

Overrides the messages.hex property. Legacy option.

Parameters

value - System.String

The value for PreviewInput

RETURNS

Returns the current ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.PreviewInput("PreviewInput"))
            )
             

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 ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.ContrastRatio("ContrastRatio"))
            )
             

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 ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.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 ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.Pass("Pass"))
            )
             

Gradient(System.String)

Allows customization of the Gradient view button.

Parameters

value - System.String

The value for Gradient

RETURNS

Returns the current ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.Gradient("Gradient"))
            )
             

Palette(System.String)

Allows customization of the Palette view button.

Parameters

value - System.String

The value for Palette

RETURNS

Returns the current ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.Palette("Palette"))
            )
             

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 ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.ToggleFormat("ToggleFormat"))
            )
             

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 ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.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 ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.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 ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.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 ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.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 ColorPickerMessagesSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().ColorPicker()
                .Name("palette")
                .Views(new string[] { "palette"})
                .Messages(m => m.Hex("Hex"))
            )