Class MenuEventArgs
Provides information for the OnItemRender
and Select
events.
Inheritance
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 |
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 |
Remarks
This property helps identify which event was triggered.