alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MenuItemModel

    Represents the class for a Menu item model used in the FileManager component.

    Inheritance
    object
    MenuItemModel
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.FileManager
    Assembly: Syncfusion.Blazor.FileManager.dll
    Syntax
    public class MenuItemModel
    Remarks

    The MenuItemModel class defines the structure of a menu item that can be rendered within the FileManager context menu. It allows customization of menu item properties such as icon, text, URL, sub items, and visibility.

    Constructors

    MenuItemModel()

    Declaration
    public MenuItemModel()

    Properties

    Disabled

    Gets or sets a value to enable or disable the menu item.

    Declaration
    public bool Disabled { get; set; }
    Property Value
    Type
    bool

    Hidden

    Gets or sets a value to hide or show the menu item.

    Declaration
    public bool Hidden { get; set; }
    Property Value
    Type
    bool

    HtmlAttributes

    Gets or sets the additional HTML attributes such as style, title etc., to the menu item

    Declaration
    public Dictionary<string, object> HtmlAttributes { get; set; }
    Property Value
    Type
    Dictionary<string, object>

    IconCss

    Gets or sets the 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
    string

    Id

    Gets or sets the id for menu item.

    Declaration
    public string Id { get; set; }
    Property Value
    Type
    string

    Items

    Gets or sets the sub menu items that is the array of MenuItem.

    Declaration
    public List<MenuItem> Items { get; set; }
    Property Value
    Type
    List<MenuItem>

    Separator

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

    Declaration
    public bool Separator { get; set; }
    Property Value
    Type
    bool

    Text

    Gets or sets the text for menu item.

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    string

    Url

    Gets or sets the URL for menu item that creates the anchor link to navigate to the url provided.

    Declaration
    public string Url { get; set; }
    Property Value
    Type
    string
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved