Class ToolbarItemModel
Provides information about the toolbar items added to the SfRichTextEditor.
Inheritance
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class ToolbarItemModel : Object
Remarks
This class defines the attributes and functionality of individual toolbar items within the RichTextEditor.
Constructors
ToolbarItemModel()
Declaration
public ToolbarItemModel()
Properties
Command
Gets or sets the command name associated with the toolbar item.
Declaration
public ToolbarCommand Command { get; set; }
Property Value
Type | Description |
---|---|
ToolbarCommand | A ToolbarCommand indicating the command tied to this item. |
Remarks
The Command property defines the specific operation triggered by the toolbar item.
CssClass
Gets or sets the CSS class used for customizing each toolbar item.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing CSS class names for custom styling. |
Remarks
Use CssClass to apply unique styles to toolbar items, enhancing their appearance.
Name
Gets or sets the template name for a custom toolbar item.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string specifying the template name. |
Remarks
The Name property can be used to refer to custom templates within the toolbar.
TooltipText
Gets or sets the tooltip text displayed for the toolbar item.
Declaration
public string TooltipText { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that appears as a tooltip. |
Remarks
Use TooltipText to provide additional guidance or data when hovering over toolbar items.