menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MenuEvents<TValue> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MenuEvents<TValue>

    Used to configure the menu events.

    Inheritance
    System.Object
    MenuEvents<TValue>
    Namespace: Syncfusion.Blazor.Navigations
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MenuEvents<TValue> : OwningComponentBase
    Type Parameters
    Name
    TValue

    Constructors

    MenuEvents()

    Declaration
    public MenuEvents()

    Properties

    Closed

    Gets or sets an event callback that is raised after closing the menu.

    Declaration
    public EventCallback<OpenCloseMenuEventArgs<TValue>> Closed { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<OpenCloseMenuEventArgs<TValue>>

    Created

    Gets or sets an event callback that is raised when rendering is completed.

    Declaration
    public EventCallback<object> Created { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    ItemSelected

    Gets or sets an event callback that is raised after selecting menu item.

    Declaration
    public EventCallback<MenuEventArgs<TValue>> ItemSelected { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<MenuEventArgs<TValue>>

    OnClose

    Gets or sets an event callback that is raised before closing the sub menu.

    Declaration
    public EventCallback<BeforeOpenCloseMenuEventArgs<TValue>> OnClose { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<BeforeOpenCloseMenuEventArgs<TValue>>

    OnItemRender

    Gets or sets an event callback that is raised while rendering each menu item.

    Declaration
    public EventCallback<MenuEventArgs<TValue>> OnItemRender { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<MenuEventArgs<TValue>>

    OnOpen

    Gets or sets an event callback that is raised before opening the menu item.

    Declaration
    public EventCallback<BeforeOpenCloseMenuEventArgs<TValue>> OnOpen { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<BeforeOpenCloseMenuEventArgs<TValue>>

    Opened

    Gets or sets an event callback that is raised after opening the menu item.

    Declaration
    public EventCallback<OpenCloseMenuEventArgs<TValue>> Opened { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<OpenCloseMenuEventArgs<TValue>>

    Methods

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved