menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MenuEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MenuEventArgs

    Provides information for the OnItemRender and Select events.

    Inheritance
    System.Object
    MenuEventArgs
    DropDownItemRenderEventArgs
    DropDownItemSelectEventArgs
    SplitButtonItemRenderEventArgs
    SplitButtonItemSelectedEventArgs
    Namespace: Syncfusion.Blazor.SplitButtons
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MenuEventArgs : Object
    Remarks

    This class contains event arguments for handling item-related actions such as rendering and selection.

    Constructors

    MenuEventArgs()

    Declaration
    public MenuEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether the item selection should be canceled.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false. If set to true, the selection is canceled.

    Remarks

    This is applicable only for the Select event.

    Element

    Gets a reference to the selected list item element.

    Declaration
    public ElementReference Element { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.ElementReference

    An Microsoft.AspNetCore.Components.ElementReference for the list item element.

    Remarks

    This property provides access to the HTML element of the selected item.

    Event

    Gets the original browser event arguments.

    Declaration
    public EventArgs Event { get; set; }
    Property Value
    Type Description
    System.EventArgs

    An System.EventArgs object that contains the original browser event data.

    Remarks

    This property provides access to the underlying browser event arguments, which can be useful for advanced scenarios.

    Item

    Gets the selected dropdown menu item.

    Declaration
    public DropDownMenuItem Item { get; set; }
    Property Value
    Type Description
    DropDownMenuItem

    A DropDownMenuItem object representing the selected item.

    Remarks

    This property contains the data model of the selected item.

    Name

    Gets the name of the event.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String

    A string that represents the name of the event, which is either OnItemRender or Select.

    Remarks

    This property helps identify which event was triggered.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved