alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MenuEventArgs

    Provides information for the OnItemRender and Select events.

    Inheritance
    object
    MenuEventArgs
    DropDownItemRenderEventArgs
    DropDownItemSelectEventArgs
    SplitButtonItemRenderEventArgs
    SplitButtonItemSelectedEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.SplitButtons
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MenuEventArgs
    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
    bool

    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
    ElementReference

    An 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
    EventArgs

    An 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
    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.

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