Skip to main content
All docs
V24.1

IContextMenuItem.Click Property

Specifies the item’s Click event handler.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

Func<Task> Click { get; set; }

Property Value

Type Description
Func<Task>

A delegate method that handles the item’s Click event.

Remarks

The following code snippet disables click functionality for the built-in Increase Indent item:

<DxRichEdit CustomizeContextMenu=OnCustomizeContextMenu />

@code {
    void OnCustomizeContextMenu(IContextMenuItemCollection items) {
        IContextMenuItem increaseIndentItem = items[RichEditContextMenuItemNames.IncreaseIndent];
        increaseIndentItem.Click = null;
    }
}
See Also