Defines the fluent API for configuring the Telerik UI FlatColorPicker for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class FlatColorPickerBuilder : WidgetBuilderBase<FlatColorPicker, FlatColorPickerBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<FlatColorPicker, FlatColorPickerBuilder>FlatColorPickerBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the FlatColorPicker class.
public FlatColorPickerBuilder(FlatColorPicker component)
The component.
Methods
Specifies whether the UI must be updated while the user is typing in the input field, whenever a valid color can be parsed. If the Autoupdate() option is disabled, the FlatColorPicker will be updated only when ENTER is pressed.
public FlatColorPickerBuilder Autoupdate(bool value)
The value that configures the auto-update option.
Returns:Specifies whether the Apply / Cancel buttons must be displayed.
public FlatColorPickerBuilder Buttons(bool value)
The value that configures the visibility of the buttons.
Returns:Specifies the template which is used for rendering the action buttons.
public FlatColorPickerBuilder ButtonsTemplate(string value)
The value that configures the buttonstemplate.
Returns: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:Specifies the template which is used for rendering the action buttons.
public FlatColorPickerBuilder ButtonsTemplateHandler(string value)
The value that configures the buttonstemplate.
Returns:Specifies the template which is used for rendering the action buttons.
public FlatColorPickerBuilder ButtonsTemplateId(string value)
The value that configures the buttonstemplate.
Returns:Specifies the template which is used for rendering the action buttons.
public FlatColorPickerBuilder ButtonsTemplateView(MvcHtmlString value)
The value that configures the buttonstemplate.
Returns:Specifies whether the 'Clear color' button must be displayed.
public FlatColorPickerBuilder ClearButton(bool value)
The value that configures the visibility of the button.
Returns:Sets the number of columns to show in the palette. Also, defines the width of the FlatColorPicker.
public FlatColorPickerBuilder Columns(double value)
The value that configures the number of the columns.
Returns:Enables the contrast tool of the FlatColorPicker.
Defines the contrast tool options.
public FlatColorPickerBuilder ContrastTool(Action<FlatColorPickerContrastToolSettingsBuilder> configurator)
The action that configures the contrast tool settings.
Returns:Enables the contrast tool of the FlatColorPicker.
public FlatColorPickerBuilder ContrastTool(bool enabled)
Toggles the visibility of the contrast tool.
Returns:Configures the handled client-side events of the FlatColorPicker.
public FlatColorPickerBuilder Events(Action<FlatColorPickerEventBuilder> configurator)
The action that configures the available events.
Returns:Sets the default input format in the gradient input editor. The valid formats are "rgb" and "hex".
public FlatColorPickerBuilder Format(string value)
The value that configures the format.
Returns: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:Specifies whether the input must be displayed in the FlatColorPicker.
public FlatColorPickerBuilder Input(bool value)
The value that configures the visibility of the input.
Returns:Defines the localization of the texts that are used in the FlatColorPicker.
public FlatColorPickerBuilder Messages(Action<FlatColorPickerMessagesSettingsBuilder> configurator)
The action that configures the message settings.
Returns:Specifies whether the opacity slider must be shown to allow transparency selection.
public FlatColorPickerBuilder Opacity(bool value)
The value that configures the visibility of the opacity slider.
Returns:Sets the color palette the user can pick from.
public FlatColorPickerBuilder Palette(ColorPickerPalette palette)
The enum value that configures the color palette.
Returns:Sets the range of colors that the user can pick from.
public FlatColorPickerBuilder Palette(IEnumerable<string> palette)
A list of colors.
Returns:Specifies whether a selected and previous colors are displayed for color comparison. When the Autoupdate() option is enabled, both selected and previous colors will be updated.
public FlatColorPickerBuilder Preview(bool value)
The value that configures the preview option.
Returns:Sets the size of the component.
public FlatColorPickerBuilder Size(ComponentSize value)
The value that configures the size.
Returns:Specifies the initially selected color.
public FlatColorPickerBuilder Value(string value)
The value that configures the initial color.
Returns:Defines the initially selected view in the FlatColorPicker. The valid views are "gradient" and "palette".
public FlatColorPickerBuilder View(string value)
The value that configures the initial view.
Returns: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: