ColorPaletteBuilder
Defines the fluent API for configuring the Telerik UI for ASP.NET Core ColorPalette.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ColorPaletteBuilder : WidgetBuilderBase<ColorPalette, ColorPaletteBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<ColorPalette, ColorPaletteBuilder>ColorPaletteBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ColorPaletteBuilder class.
Methods
The number of columns to display. When you use the "websafe" palette, this will automatically default to 18.
public ColorPaletteBuilder Columns(int value)
The value for Columns
Returns:Returns the current ColorPaletteBuilder instance.
Configures the client-side events.
public ColorPaletteBuilder Events(Action<ColorPaletteEventBuilder> configurator)
The client events action.
Returns:Returns the current ColorPaletteBuilder instance.
Sets the color palette.
public ColorPaletteBuilder Palette(ColorPickerPalette palette)
The enum value that configures the color palette.
Returns:Returns the current instance of ColorPaletteBuilder for method chaining.
Sets the range of colors that the user can pick from.
public ColorPaletteBuilder Palette(params string[] palette)
A list of colors.
Returns:Returns the current instance of ColorPaletteBuilder for method chaining.
Sets the size of the component.
public ColorPaletteBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current ColorPaletteBuilder instance.
The size of a color cell.
public ColorPaletteBuilder TileSize(Action<ColorPaletteTileSizeSettingsBuilder> configurator)
The ColorPaletteTileSizeSettingsBuilder for the tilesize setting.
Returns:Returns the current instance of ColorPaletteBuilder .
Sets the size of the palette tiles.
public ColorPaletteBuilder TileSize(double tileSize)
The tile size (for square tiles)
Returns:Returns the current instance of ColorPaletteBuilder for method chaining.
Specifies the initially selected color.
public ColorPaletteBuilder Value(string value)
The value for Value
Returns:Returns the current ColorPaletteBuilder instance.