ColorPaletteBuilder
Defines the fluent interface for configuring the DatePickerBase component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ColorPaletteBuilder : WidgetBuilderBase<ColorPalette, ColorPaletteBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<ColorPalette, ColorPaletteBuilder>ColorPaletteBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ColorPaletteBuilder class.
public ColorPaletteBuilder(ColorPalette component)
The component.
Methods
Sets the number of the displayed columns. When using the "WebSafe" palette, the number of columns will automatically default to 18.
public ColorPaletteBuilder Columns(int columns)
The value that configures the number of columns.
Returns:Handles the client-side events of the ColorPalette..
public ColorPaletteBuilder Events(Action<SimpleColorPickerEventBuilder> clientEventsAction)
The action that configures the available events.
Returns:Sets the color palette.
public ColorPaletteBuilder Palette(ColorPickerPalette palette)
The enum value that configures the color palette.
Returns:Sets the range of colors that the user can pick from.
public ColorPaletteBuilder Palette(IEnumerable<string> palette)
A list of colors.
Returns:Defines the size of the palette tiles.
public ColorPaletteBuilder TileSize(Action<PaletteSizeBuilder> sizeAction)
The action that configures the tile settings.
Returns:Sets the size of the palette tiles.
public ColorPaletteBuilder TileSize(int tileSize)
The tile size (for square tiles).
Returns:Sets the initially selected color.
public ColorPaletteBuilder Value(string color)
The value that configures the initial color.
Returns: