menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DropDownMenuItem - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DropDownMenuItem

    Inheritance
    System.Object
    DropDownMenuItem
    Namespace: Syncfusion.Blazor.SplitButtons
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class DropDownMenuItem : OwningComponentBase

    Constructors

    DropDownMenuItem()

    Declaration
    public DropDownMenuItem()

    Properties

    ChildContent

    Set custom content for items.

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.RenderFragment

    Disabled

    Used to enable or disable the action items.

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

    HtmlAttributes

    You can add the additional HTML attributes such as style, title etc., to the item

    Declaration
    public Dictionary<string, object> HtmlAttributes { get; set; }
    Property Value
    Type
    System.Collections.Generic.Dictionary<System.String, System.Object>

    IconCss

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

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

    Id

    Specifies unique id for item.

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

    Separator

    Specifies separator between the items. Separator are horizontal lines used to group action items.

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

    Text

    Specifies text for item.

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

    Url

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

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

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    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