New to Telerik UI for ASP.NET MVC? Download free 30-day trial

ColorPickerMessagesSettingsBuilder

Methods

Apply(System.String)

Allows customization of the "Apply" button text.

Parameters

value - System.String

The value that configures the apply.

Example


            @(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 that configures the cancel.

Example


            @(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 that configures the clearcolor.

Example


            @(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 that configures the previewinput.

Example


            @(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 that configures the contrastratio.

Example


            @(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 that configures the fail.

Example


            @(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 that configures the pass.

Example


            @(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 that configures the gradient.

Example


            @(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 that configures the palette.

Example


            @(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 that configures the toggleformat.

Example


            @(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 that configures the red.

Example


            @(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 that configures the green.

Example


            @(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 that configures the blue.

Example


            @(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 that configures the alpha.

Example


            @(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 that configures the hex.

Example


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

In this article
Not finding the help you need?