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

Kendo UI FlatColorPicker component

Definition

Constructors

Initializes a new instance of the FlatColorPicker class.

C#
public FlatColorPicker(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Specifies whether the UI should be updated while the user is typing in the input field, whenever a valid color can be parsed. If you pass false for this, the widget will update only when ENTER is pressed.

C#
public bool? Autoupdate { get; set; }

Specifies whether the widget should display the Apply / Cancel buttons.

C#
public bool? Buttons { get; set; }

Specifies the template which is used for rendering the action buttons.

C#
public string ButtonsTemplate { get; set; }

The handler that returns the template used for ButtonsTemplate

C#
public string ButtonsTemplateHandler { get; set; }

The id of the script element used for ButtonsTemplate

C#
public string ButtonsTemplateId { get; set; }

Specifies whether the widget should display the 'Clear color' button.

C#
public bool? ClearButton { get; set; }

The number of columns to show in the palette. Also defines the width of the FlatColorPicker.

C#
public double? Columns { get; set; }

Enables the contrast tool in the ColorGradient.

C#
public FlatColorPickerContrastToolSettings ContrastTool { get; }

Enabled member.

C#
public bool Enabled { get; set; }

Defines the format of the gradient input editor.

C#
public ColorPickerFormat? Format { get; set; }

Formats member.

C#
public IEnumerable<string> Formats { get; set; }

Whether to render the input in ColorGradient component.

C#
public bool? Input { get; set; }

Allows customization of "Apply" / "Cancel" labels.

C#
public FlatColorPickerMessagesSettings Messages { get; }

Specifies whether we should display the opacity slider to allow selection of transparency.

C#
public bool? Opacity { get; set; }

Defines the palettes that can be used in the color picker.

C#
public ColorPickerPalette? Palette { get; set; }

PaletteColors member.

C#
public IEnumerable<string> PaletteColors { get; set; }

Specifies whether a selected and previous color are displayed for color comparison. with autoupdate set to true both selected and previous colors will be updated.

C#
public bool? Preview { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

Specifies the initially selected color.

C#
public string Value { get; set; }

The initially selected view in the FlatColorPicker.

C#
public string View { get; set; }

Views member.

C#
public IEnumerable<string> Views { get; set; }

Methods

GetElement method.

C#
protected override TagBuilder GetElement()
Returns:

TagBuilder

Overrides: WidgetBase.GetElement()

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)