Defines the fluent API for configuring the Telerik UI FlatColorPicker for ASP.NET Core.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class FlatColorPickerBuilder : MvvmWidgetBuilderBase<FlatColorPicker, FlatColorPickerBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<FlatColorPicker, FlatColorPickerBuilder>MvvmWidgetBuilderBase<FlatColorPicker, FlatColorPickerBuilder>FlatColorPickerBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the FlatColorPickerBuilder class.
Methods
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 FlatColorPickerBuilder Autoupdate(bool value)
The value for Autoupdate
Returns:Returns the current FlatColorPickerBuilder instance.
Specifies whether the widget should display the Apply / Cancel buttons.
public FlatColorPickerBuilder Buttons()
Returns the current FlatColorPickerBuilder instance.
Specifies whether the widget should display the Apply / Cancel buttons.
public FlatColorPickerBuilder Buttons(bool value)
The value for Buttons
Returns:Returns the current FlatColorPickerBuilder instance.
Specifies the template which is used for rendering the action buttons.
public FlatColorPickerBuilder ButtonsTemplate(string value)
The value for ButtonsTemplate
Returns:Returns the current FlatColorPickerBuilder instance.
Specifies the template which is used for rendering the action buttons.
public FlatColorPickerBuilder ButtonsTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the buttonstemplate.
Returns:Returns the current FlatColorPickerBuilder instance.
Specifies the template which is used for rendering the action buttons.
public FlatColorPickerBuilder ButtonsTemplateHandler(string templateHandler)
The handler that returs the template for ButtonsTemplate
Returns:Returns the current FlatColorPickerBuilder instance.
Specifies the template which is used for rendering the action buttons.
public FlatColorPickerBuilder ButtonsTemplateId(string templateId)
The ID of the template element for ButtonsTemplate
Returns:Returns the current FlatColorPickerBuilder instance.
Specifies the template which is used for rendering the action buttons.
public FlatColorPickerBuilder ButtonsTemplateView(IHtmlContent templateView)
The view that contains the template for ButtonsTemplate
Returns:Returns the current FlatColorPickerBuilder instance.
Specifies whether the widget should display the 'Clear color' button.
public FlatColorPickerBuilder ClearButton()
Returns the current FlatColorPickerBuilder instance.
Specifies whether the widget should display the 'Clear color' button.
public FlatColorPickerBuilder ClearButton(bool value)
The value for ClearButton
Returns:Returns the current FlatColorPickerBuilder instance.
The number of columns to show in the palette. Also defines the width of the FlatColorPicker.
public FlatColorPickerBuilder Columns(double value)
The value for Columns
Returns:Returns the current FlatColorPickerBuilder instance.
Enables the contrast tool in the ColorGradient.
public FlatColorPickerBuilder ContrastTool()
Returns the current instance of FlatColorPickerContrastToolSettingsBuilder .
Enables the contrast tool in the ColorGradient.
public FlatColorPickerBuilder ContrastTool(Action<FlatColorPickerContrastToolSettingsBuilder> configurator)
The FlatColorPickerContrastToolSettingsBuilder for the contrasttool setting.
Returns:Returns the current instance of FlatColorPickerBuilder .
Enables the contrast tool in the ColorGradient.
public FlatColorPickerBuilder ContrastTool(bool enabled)
Enables or disables the contrasttool option.
Returns:Returns the current instance of FlatColorPickerContrastToolSettingsBuilder .
Configures the client-side events.
public FlatColorPickerBuilder Events(Action<FlatColorPickerEventBuilder> configurator)
The client events action.
Returns:Returns the current FlatColorPickerBuilder instance.
Defines the format of the gradient input editor.
public FlatColorPickerBuilder Format(ColorPickerFormat value)
The value for Format
Returns:Returns the current FlatColorPickerBuilder instance.
Sets the available input formats in the gradient input editor. Only "hex" and "rgb" are valid values.
public FlatColorPickerBuilder Formats(params string[] formats)
A list of formats.
Returns:Returns the current FlatColorPickerBuilder instance.
Whether to render the input in ColorGradient component.
public FlatColorPickerBuilder Input(bool value)
The value for Input
Returns:Returns the current FlatColorPickerBuilder instance.
Allows customization of "Apply" / "Cancel" labels.
public FlatColorPickerBuilder Messages(Action<FlatColorPickerMessagesSettingsBuilder> configurator)
The FlatColorPickerMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of FlatColorPickerBuilder .
Specifies whether we should display the opacity slider to allow selection of transparency.
public FlatColorPickerBuilder Opacity()
Returns the current FlatColorPickerBuilder instance.
Specifies whether we should display the opacity slider to allow selection of transparency.
public FlatColorPickerBuilder Opacity(bool value)
The value for Opacity
Returns:Returns the current FlatColorPickerBuilder instance.
Defines the palettes that can be used in the color picker.
public FlatColorPickerBuilder Palette(ColorPickerPalette value)
The value for Palette
Returns:Returns the current FlatColorPickerBuilder instance.
Sets the range of colors that the user can pick from.
public FlatColorPickerBuilder Palette(params string[] palette)
A list of colors.
Returns:Returns the current FlatColorPickerBuilder instance.
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 FlatColorPickerBuilder Preview(bool value)
The value for Preview
Returns:Returns the current FlatColorPickerBuilder instance.
Sets the size of the component.
public FlatColorPickerBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current FlatColorPickerBuilder instance.
Specifies the initially selected color.
public FlatColorPickerBuilder Value(string value)
The value for Value
Returns:Returns the current FlatColorPickerBuilder instance.
The initially selected view in the FlatColorPicker.
public FlatColorPickerBuilder View(string value)
The value for View
Returns:Returns the current FlatColorPickerBuilder instance.
Sets the available views in the FlatColorPicker. The valid values are "gradient" and "palette".
public FlatColorPickerBuilder Views(params string[] views)
A list of the views.
Returns:Returns the current FlatColorPickerBuilder instance.