ColorPickerBuilder
Defines the fluent interface for configuring the DatePickerBase component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ColorPickerBuilder : WidgetBuilderBase<ColorPicker, ColorPickerBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<ColorPicker, ColorPickerBuilder>ColorPickerBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ColorPickerBuilder class.
Methods
Specifies the adaptive rendering of the component. The supported values are: none (default), auto.
public ColorPickerBuilder AdaptiveMode(AdaptiveMode value)
The value that configures the adaptivemode.
Returns:Allows customization of the subtitle's text in the adaptive view of the component.
public ColorPickerBuilder AdaptiveSubtitle(string value)
The value that configures the adaptivesubtitle.
Returns:Allows customization of the title's text in the adaptive view of the component.
public ColorPickerBuilder AdaptiveTitle(string value)
The value that configures the adaptivetitle.
Returns:Specifies whether the widget should display the Apply / Cancel buttons.
public ColorPickerBuilder Buttons(bool value)
The value that configures the buttons.
Returns:Specifies the template which is used for rendering the action buttons.
public ColorPickerBuilder ButtonsTemplate(string value)
The value that configures the buttonstemplate.
Returns:Specifies the template which is used for rendering the action buttons.
public ColorPickerBuilder 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 ColorPickerBuilder ButtonsTemplateHandler(string value)
The value that configures the buttonstemplate.
Returns:Specifies the template which is used for rendering the action buttons.
public ColorPickerBuilder ButtonsTemplateId(string value)
The value that configures the buttonstemplate.
Returns:Specifies the template which is used for rendering the action buttons.
public ColorPickerBuilder ButtonsTemplateView(MvcHtmlString value)
The value that configures the buttonstemplate.
Returns:Specifies whether the widget should display the 'Clear color' button.
public ColorPickerBuilder ClearButton(bool value)
The value that configures the clearbutton.
Returns:Specifies whether selection of a color in the palette view closes the popup. Applied only when buttons are set to false and the currently selected view is palette.
public ColorPickerBuilder CloseOnSelect(bool value)
The value that configures the closeonselect.
Returns:The number of columns to show in the color dropdown when a pallete is specified. This is automatically initialized for the "basic" and "websafe" palettes. If you use a custom palette then you can set this to some value that makes sense for your colors.
public ColorPickerBuilder Columns(double value)
The value that configures the columns.
Returns:Enables the contrast tool in the ColorGradient.
Enables the contrast tool in the ColorGradient.
public ColorPickerBuilder ContrastTool(Action<ColorPickerContrastToolSettingsBuilder> configurator)
The action that configures the contrasttool.
Returns:Enables the contrast tool in the ColorGradient.
public ColorPickerBuilder ContrastTool(bool enabled)
Enables or disables the contrasttool option.
Returns:Enables or disables the picker.
public ColorPickerBuilder Enable(bool value)
Whether the picker is enabled
Returns:Configures the client-side events.
public ColorPickerBuilder Events(Action<ColorPickerEventBuilder> clientEventsAction)
The client events action.
Returns:Sets a value controlling how the color is applied.
public ColorPickerBuilder FillMode(FillMode value)
The value that configures the fillmode.
Returns:Defines the format of the gradient input editor
public ColorPickerBuilder Format(ColorPickerFormat value)
The value that configures the format.
Returns:Sets the available input formats in the gradient input editor.
public ColorPickerBuilder Formats(params string[] formats)
Only "hex" and "rgb" are valid values.
Returns:Whether to render the input in the ColorGradient component.
public ColorPickerBuilder Input(bool value)
The value that configures the input.
Returns:Allows localization of the strings that are used in the widget.
public ColorPickerBuilder Messages(Action<ColorPickerMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:Only for the HSV selector. If true, the widget will display the opacity slider. Note that currently in HTML5 the <input type="color"> does not support opacity.
public ColorPickerBuilder Opacity(bool value)
The value that configures the opacity.
Returns:Sets the range of colors that the user can pick from.
public ColorPickerBuilder Palette(ColorPickerPalette palette)
One of the preset palettes of colors
Returns:Sets the range of colors that the user can pick from.
public ColorPickerBuilder Palette(IEnumerable<string> palette)
A list of colors.
Returns:Displays the color preview element and the previously selected color for comparison. With buttons set to false, both elements will update at the same time.
public ColorPickerBuilder Preview(bool value)
The value that configures the preview.
Returns:Sets a value controlling the border radius.
public ColorPickerBuilder Rounded(Rounded value)
The value that configures the rounded.
Returns:Sets the size of the component.
public ColorPickerBuilder Size(ComponentSize value)
The value that configures the size.
Returns:Sets the size of the palette tiles
public ColorPickerBuilder TileSize(Action<PaletteSizeBuilder> sizeAction)
The tile size (for square tiles)
Returns:Sets the size of the palette tiles
public ColorPickerBuilder TileSize(int tileSize)
The tile size (for square tiles)
Returns:A CSS class name to display an icon in the color picker button. If specified, the HTML for the element will look like this:
public ColorPickerBuilder ToolIcon(string value)
The value that configures the toolicon.
Returns:The initially selected color. Note that when initializing the widget from an <input> element, the initial color will be decided by the field instead.
public ColorPickerBuilder Value(string value)
The value that configures the value.
Returns:Defines the initially selected view in the ColorPicker.
public ColorPickerBuilder View(ColorPickerView value)
The value that configures the view.
Returns:Sets the views of the component.
public ColorPickerBuilder Views(params string[] views)
The array value that configures the views.
Returns: