TelerikColorPalette
A component that lets you pick a color from a predefined or custom palette arranged in tiles. Supports presets, columns and tile sizing, size variants, keyboard navigation, ARIA labeling, and two-way value binding.
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
public TelerikColorPalette()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnParametersSet()
Overrides:
Properties
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.
[Parameter]
public IEnumerable<string> Colors { get; set; }
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.
[Parameter]
public int Columns { get; set; }
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.
[Parameter]
public string TileHeight { get; set; }
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.
[Parameter]
public string TileWidth { get; set; }