ClassEditorCustomTool
Enables creation of custom tools for the Editor toolbar with application-specific functionality. Use to add custom buttons, dropdowns, or other UI elements that integrate seamlessly with the Editor. Custom tools are referenced by name in the Editor's Tools collection to position them in the toolbar.
Definition
Namespace:Telerik.Blazor.Components.Editor
Assembly:Telerik.Blazor.dll
Syntax:
public class EditorCustomTool : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IEditorCustomToolRendering, IDisposable
Inheritance: objectComponentBaseEditorCustomTool
Implements:
Inherited Members
Constructors
EditorCustomTool()
Declaration
public EditorCustomTool()
Properties
ChildContent
Contains the custom UI content that will be rendered in the Editor toolbar. Use this to define buttons, dropdowns, or other interactive elements with custom styling and behavior. Content has access to the parent Editor context for implementing tool functionality. Should follow Editor toolbar styling conventions for consistent appearance. Children: Custom UI elements like buttons, dropdowns, or other controls.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Implements
Name
Sets the unique identifier name for this custom tool that links it to the toolbar position. Use this name in the Editor's Tools collection to include the custom tool. Example: "MyCustomButton" can be referenced in Tools as new CustomTool { Name = "MyCustomButton" }. Must be unique within the Editor's custom tools collection. Required parameter.
Declaration
[Parameter]
public string Name { get; set; }
Property Value
Implements
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public void Dispose()
Implements