ClassTelerikColorPalette
The class for the Telerik ColorPalette component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikColorPalette : TelerikInputBase<string>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikInputBase<string>TelerikColorPalette
Implements:
Inherited Members
Constructors
TelerikColorPalette()
Declaration
public TelerikColorPalette()
Properties
Colors
The collection of colors for the user to choose from. Can be one of the built-in preset palettes - Apex, Austin, Basic, Clarity, Flow, HardCover, Metro, MonoChrome, SlipStream, Treck or Verve. Can be a custom list of colors. The default value is Office.
Declaration
[Parameter]
public IEnumerable<string> Colors { get; set; }
Property Value
Columns
The number of columns to use when rendering the Color list.
Determines the size of the component together with the TileHeight and TileWidth.
Default value is 10
.
TileHeight
Defines the height of each individual color item.
Determines the size of the component together with the Columns and TileWidth.
Accepts CSS dimension strings.
Default value is 24px
.
Declaration
[Parameter]
public string TileHeight { get; set; }
Property Value
TileWidth
Defines the width of each individual color item.
Determines the size of the component together with the Columns and TileHeight. Accepts CSS dimension strings.
Default value is 24px
.
Declaration
[Parameter]
public string TileWidth { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides