Class
ColorTool

Base class for the colorpicker tool.

Definition

Namespace:Telerik.Blazor.Components.Editor

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class ColorTool : IEditorCommandTool, IEditorTool

Inheritance: objectColorTool

Derived Classes: BackgroundColorForeColor

Implements: IEditorCommandToolIEditorTool

Constructors

ColorTool()

Declaration

cs-api-definition
public ColorTool()

Properties

Colors

Specifies the predefined set of colors for the colorpicker.

Declaration

cs-api-definition
public IEnumerable<string> Colors { get; set; }

Property Value

IEnumerable<string>

CommandName

The name of the editor command that will be invoked.

Declaration

cs-api-definition
public string CommandName { get; set; }

Property Value

string

Implements IEditorCommandTool.CommandName

Enabled

The value that will be passed to the command.

Declaration

cs-api-definition
public bool Enabled { get; set; }

Property Value

bool

Icon

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.

Declaration

cs-api-definition
public object Icon { get; set; }

Property Value

object

Title

The title attribute of the ColorPicker button.

Declaration

cs-api-definition
public string Title { get; set; }

Property Value

string

Implements IEditorCommandTool.Title

Value

The value that will be passed to the command.

Declaration

cs-api-definition
public string Value { get; set; }

Property Value

string

ValueChanged

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

Declaration

cs-api-definition
public EventCallback<string> ValueChanged { get; set; }

Property Value

EventCallback<string>

ValueFormat

Specifies the format of the inline color style.

Declaration

cs-api-definition
public ColorFormat ValueFormat { get; set; }

Property Value

ColorFormat