FlatColorPicker
Kendo UI FlatColorPicker component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class FlatColorPicker : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseFlatColorPicker
Implements:
Inherited Members
Constructors
Initializes a new instance of the FlatColorPicker class.
public FlatColorPicker(ViewContext viewContext, IJavaScriptInitializer initializer, ViewDataDictionary viewData)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
viewDataViewDataDictionaryThe ViewDataDictionary.
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 for the ButtonsTemplate
public string ButtonsTemplateHandler { get; set; }
The id for the 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; set; }
Sets the default input format in the gradient input editor.
public string Format { get; set; }
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; set; }
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; }
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; }
public IEnumerable<string> Views { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: