Class
ButtonTool

Base class for Editor tools that are buttons.

Definition

Namespace:Telerik.Blazor.Components.Editor

Assembly:Telerik.Blazor.dll

Syntax:

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

Inheritance: objectButtonTool

Derived Classes: AddColumnAfterAddColumnBeforeAddRowAfterAddRowBeforeDeleteColumnDeleteRowDeleteTableIndentInsertTableMergeCellsOutdentRedoSplitCellUndoUnlink

Implements: IEditorCommandToolIEditorTool

Constructors

ButtonTool()

Declaration

cs-api-definition
public ButtonTool()

Properties

ChildContent

The text (or other content) of the button.

Declaration

cs-api-definition
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Class

CSS class.

Declaration

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

Property Value

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

Whether the button is enabled. True by default.

Declaration

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

Property Value

bool

Icon

Specifies the icon rendered in the button. 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

OnClick

Fires when the button is clicked.

Declaration

cs-api-definition
public EventCallback<MouseEventArgs> OnClick { get; set; }

Property Value

EventCallback<MouseEventArgs>

Title

The title attribute of the button.

Declaration

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

Property Value

string

Implements IEditorCommandTool.Title