menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MenuItem - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MenuItem

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    MenuItem
    Namespace: Syncfusion.EJ2.Navigations
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class MenuItem : EJTagHelper

    Constructors

    MenuItem()

    Declaration
    public MenuItem()

    Properties

    HtmlAttributes

    Specifies the htmlAttributes property to support adding custom attributes to the menu items in the menu component.

    Declaration
    public object HtmlAttributes { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    IconCss

    Defines class/multiple classes separated by a space for the menu Item that is used to include an icon. Menu Item can include font icon and sprite image.

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

    The default value is null

    Id

    Specifies the id for menu item.

    Declaration
    public override string Id { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    Overrides
    Syncfusion.EJ2.EJTagHelper.Id

    Items

    Specifies the sub menu items that is the array of MenuItem model.

    Declaration
    public object Items { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Separator

    Specifies separator between the menu items. Separator are either horizontal or vertical lines used to group menu items.

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

    The default value is false

    Text

    Specifies text for menu item.

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

    The default value is ""

    Url

    Specifies url for menu item that creates the anchor link to navigate to the url provided.

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

    The default value is ""

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