menu

Blazor

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

    Show / Hide Table of Contents

    Class BeforeOpenCloseMenuEventArgs<T>

    Provides the information about OnOpen/OnClose event.

    Inheritance
    System.Object
    BeforeOpenCloseMenuEventArgs<T>
    Namespace: Syncfusion.Blazor.Navigations
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class BeforeOpenCloseMenuEventArgs<T> : Object
    Type Parameters
    Name
    T

    Constructors

    BeforeOpenCloseMenuEventArgs()

    Declaration
    public BeforeOpenCloseMenuEventArgs()

    Properties

    Cancel

    Gets or sets a value that indicates whether to allow or prevent the open/close action of menu bar.

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

    Element

    Gets or sets a value that indicates the menu container element.

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

    Items

    Gets or sets a value that indicates the current menu items.

    Declaration
    public List<T> Items { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<T>

    Left

    Gets or sets a value that indicates the clientX position of the menu.

    Declaration
    public Nullable<double> Left { get; set; }
    Property Value
    Type
    System.Nullable<System.Double>

    Name

    Gets or sets a value that indicates the name of the event.

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

    ParentItem

    Gets or sets a value that indicates the parent item.

    Declaration
    public T ParentItem { get; set; }
    Property Value
    Type
    T

    ScrollHeight

    Gets or sets a value that indicates the menu container height to show the scrollable menu. It is applicable only when the EnableScrolling property is enabled.

    Declaration
    public double ScrollHeight { get; set; }
    Property Value
    Type
    System.Double

    TargetId

    Gets the ID of the element on which the user right click their mouse button (or finger, on touch devices) to open the context menu.

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

    Top

    Gets or sets a value that indicates the clientY position of the menu.

    Declaration
    public Nullable<double> Top { get; set; }
    Property Value
    Type
    System.Nullable<System.Double>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved