IContextMenuItem.Click Property
Specifies the item’s Click event handler.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
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