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

Defines the fluent API for configuring the FlatColorPickerMessagesSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class FlatColorPickerMessagesSettingsBuilder

Inheritance: objectFlatColorPickerMessagesSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public FlatColorPickerMessagesSettingsBuilder(FlatColorPickerMessagesSettings settings)
Parameters:settingsFlatColorPickerMessagesSettings

The FlatColorPickerMessagesSettings

Methods

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

C#
public FlatColorPickerMessagesSettingsBuilder Alpha(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.Alpha("Alpha"))
)

Allows customization of the "Apply" button label.

C#
public FlatColorPickerMessagesSettingsBuilder Apply(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.Apply("Set"))
)

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

C#
public FlatColorPickerMessagesSettingsBuilder Blue(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.Blue("Blue"))
)

Allows customization of the "Cancel" button label.

C#
public FlatColorPickerMessagesSettingsBuilder Cancel(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.Cancel("Cancel"))
)

Allows customization of the "Clear Color" button label.

C#
public FlatColorPickerMessagesSettingsBuilder ClearColor(string value)
Parameters:valuestring

TThe value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.ClearColor("Clear color"))
)

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

C#
public FlatColorPickerMessagesSettingsBuilder ContrastRatio(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.ContrastRatio("Contrast ratio"))
)

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

C#
public FlatColorPickerMessagesSettingsBuilder Fail(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.Fail("Fail"))
)

Allows customization of the "Gradient view" button label.

C#
public FlatColorPickerMessagesSettingsBuilder Gradient(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.Gradient("Gradient view"))
)

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

C#
public FlatColorPickerMessagesSettingsBuilder Green(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.Green("Green"))
)

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

C#
public FlatColorPickerMessagesSettingsBuilder Hex(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.Hex("HEX"))
)

Allows customization of the "Palette view" button label.

C#
public FlatColorPickerMessagesSettingsBuilder Palette(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.Palette("Palette view"))
)

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

C#
public FlatColorPickerMessagesSettingsBuilder Pass(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.Pass("Pass"))
)

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

C#
public FlatColorPickerMessagesSettingsBuilder Red(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.Red("Red"))
)

Allows customization of the toggle format button's aria-label in the Gradient's input editor.

C#
public FlatColorPickerMessagesSettingsBuilder ToggleFormat(string value)
Parameters:valuestring

The value that sets the message text.

Returns:

FlatColorPickerMessagesSettingsBuilder

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("flatColorPicker")
.Messages(msg => msg.ToggleFormat("Toggle format"))
)