Class ButtonTool
Base class for Editor tools that are buttons.
Inheritance
Namespace: Telerik.Blazor.Components.Editor
Assembly: Telerik.Blazor.dll
Syntax
public class ButtonTool : Object, IEditorCommandTool, IEditorTool
Constructors
ButtonTool()
Declaration
public ButtonTool()
Properties
ChildContent
The text (or other content) of the button.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment
|
Class
CSS class.
Declaration
public string Class { get; set; }
Property Value
System.String
|
CommandName
The name of the editor command that will be invoked.
Declaration
public string CommandName { get; set; }
Property Value
System.String
|
Implements
Enabled
Whether the button is enabled. True by default.
Declaration
public bool Enabled { get; set; }
Property Value
System.Boolean
|
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
public object Icon { get; set; }
Property Value
System.Object
|
OnClick
Fires when the button is clicked.
Declaration
public EventCallback<MouseEventArgs> OnClick { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs>
|
Title
The title attribute of the button.
Declaration
public string Title { get; set; }
Property Value
System.String
|