IBarItemBase Interface
A base interface for a tab, group, and item on the Rich Text Editor‘s ribbon or toolbar.
Namespace: DevExpress.Blazor.Office
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public interface IBarItemBase
Remarks
The following code snippet creates a custom group with the default Clipboard item.
<DxRichEdit CustomizeToolbar=OnCustomizeToolbar BarMode=BarMode.Toolbar/>
@code {
void OnCustomizeToolbar(IToolbar toolbar) {
BarGroupCollection groups = toolbar.Groups;
groups.Clear();
AddClipboardGroup(groups);
// ...
}
void AddClipboardGroup(BarGroupCollection groups) {
IBarGroup clipboardGroup = groups.AddCustomGroup();
clipboardGroup.IconUrl = "_content/BlazorDemo/images/Paste.svg";
IBarItem clipboardDropDown = clipboardGroup.Items.Add(RichEditBarItemNames.ClipboardMenu);
clipboardDropDown.Name = "Clipboard";
clipboardDropDown.Text = "Clipboard";
}
}
See Also