New to Telerik UI for BlazorStart a free 30-day trial

Base class for the colorpicker tool.

Definition

Namespace:Telerik.Blazor.Components.Editor

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class ColorTool : IEditorCommandTool, IEditorTool

Inheritance: objectColorTool

Derived Classes: BackgroundColorForeColor

Implements: IEditorCommandToolIEditorTool

Constructors

C#
public ColorTool()

Properties

Specifies the predefined set of colors for the colorpicker.

C#
public IEnumerable<string> Colors { get; set; }

The name of the editor command that will be invoked.

C#
public string CommandName { get; set; }

Implements: IEditorCommandTool.CommandName

The value that will be passed to the command.

C#
public bool Enabled { get; set; }

Specifies the icon rendered in the colorpicker. You can use either a predefined Telerik Icon or a custom one. Refer to Icons - Documentation for more information on how icons work.

C#
public object Icon { get; set; }

The title attribute of the ColorPicker button.

C#
public string Title { get; set; }

Implements: IEditorCommandTool.Title

The value that will be passed to the command.

C#
public string Value { get; set; }

Event that fires when the new value is selected. Used for two-way binding.

C#
public EventCallback<string> ValueChanged { get; set; }

Specifies the format of the inline color style.

C#
public ColorFormat ValueFormat { get; set; }