Class TelerikColorPalette
The class for the Telerik ColorPalette component.
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikColorPalette : TelerikInputBase<string>, IDisposable, ILabelableInput, IColorPaletteSettings
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
public IEnumerable<string> Colors { get; set; }
Property Value
System.Collections.Generic.IEnumerable<System.String>
|
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
.
Declaration
public int Columns { get; set; }
Property Value
System.Int32
|
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
public string TileHeight { get; set; }
Property Value
System.String
|
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
public string TileWidth { get; set; }
Property Value
System.String
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
OnAfterRenderAsync(Boolean)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
System.Boolean
firstRender
|
Returns
System.Threading.Tasks.Task
|
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()