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