FlatColorPicker
Kendo UI FlatColorPicker component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class FlatColorPicker : WidgetBase, IHtmlAttributesContainer, IFormEditor
Inheritance: objectWidgetBaseFlatColorPicker
Implements:
Inherited Members
Constructors
Initializes a new instance of the FlatColorPicker class.
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.
public bool? Autoupdate { get; set; }
Specifies whether the widget should display the Apply / Cancel buttons.
public bool? Buttons { get; set; }
Specifies the template which is used for rendering the action buttons.
public string ButtonsTemplate { get; set; }
The handler that returns the template used for ButtonsTemplate
public string ButtonsTemplateHandler { get; set; }
The id of the script element used for ButtonsTemplate
public string ButtonsTemplateId { get; set; }
Specifies whether the widget should display the 'Clear color' button.
public bool? ClearButton { get; set; }
The number of columns to show in the palette. Also defines the width of the FlatColorPicker.
public double? Columns { get; set; }
Enables the contrast tool in the ColorGradient.
public FlatColorPickerContrastToolSettings ContrastTool { get; }
Defines the format of the gradient input editor.
public ColorPickerFormat? Format { get; set; }
Formats member.
public IEnumerable<string> Formats { get; set; }
Whether to render the input in ColorGradient component.
public bool? Input { get; set; }
Allows customization of "Apply" / "Cancel" labels.
public FlatColorPickerMessagesSettings Messages { get; }
Specifies whether we should display the opacity slider to allow selection of transparency.
public bool? Opacity { get; set; }
Defines the palettes that can be used in the color picker.
public ColorPickerPalette? Palette { get; set; }
PaletteColors member.
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.
public bool? Preview { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
Views member.
public IEnumerable<string> Views { get; set; }
Methods
GetElement method.
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
Implements:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: