menu

Blazor

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

    Show / Hide Table of Contents

    Class RibbonDropDownSettings

    Inheritance
    System.Object
    RibbonDropDownSettings
    Namespace: Syncfusion.Blazor.Ribbon
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class RibbonDropDownSettings : OwningComponentBase

    Constructors

    RibbonDropDownSettings()

    Declaration
    public RibbonDropDownSettings()

    Properties

    Content

    Gets or sets the content of the DropdownButton, which can be text.

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

    A string representing the content to be displayed in the DropdownButton. The default value is String.Empty.

    Remarks

    Use this property to set the content for the DropdownButton to customize the appearance of the button.

    Created

    Triggers an event callback that is raised once the dropdownbutton rendering is completed.

    Declaration
    public EventCallback Created { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback

    An event callback that signifies the completion of dropdownbutton rendering.

    Remarks

    This event is useful to track when the dropdownbutton’s rendering process has finished, allowing for additional actions or state changes to be triggered after the component has fully rendered.

    CssClass

    Gets or sets one or more CSS classes to customize the appearance of the DropdownButton.

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

    A string containing one or more CSS class names, separated by spaces, used to apply custom styles to the DropdownButton. The default value is String.Empty.

    Remarks

    Use this property to add custom CSS classes to the DropdownButton for styling purposes. Multiple classes can be specified by separating them with spaces.

    HtmlAttributes

    Specifies additional HTML attributes to be applied to the DropDownButton.

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

    IconCss

    Gets or sets one or more CSS classes to include font icon and sprite image for the DropdownButton.

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

    Accepts a CSS class string separated by space to add icons or images to the DropdownButton. The default value is String.Empty.

    Remarks

    Use this property to apply icon classes or sprite images to the DropdownButton for visual enhancement.

    ItemRendering

    Gets or sets an event callback that is raised while rendering each item in the DropdownButton popup.

    Declaration
    public EventCallback<DropDownItemRenderEventArgs> ItemRendering { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DropDownItemRenderEventArgs>

    An event callback of type DropDownItemRenderEventArgs that provides information during the rendering of each popup item.

    Remarks

    Use this event to customize the rendering of individual items in the dropdown. You can modify the properties of each item during its rendering phase, such as applying styles or altering its content dynamically.

    Items

    Gets or sets the items to be rendered in the DropdownButton popup.

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

    A list of DropDownMenuItem objects that define the items to display in the DropdownButton's popup menu.

    Remarks

    Use this property to define the list of menu items that will be displayed in the dropdown. Each item is represented by a DropDownMenuItem object.

    ItemSelecting

    Triggers an event callback that is raised when an item is selected in the DropdownButton popup.

    Declaration
    public EventCallback<DropDownItemSelectEventArgs> ItemSelecting { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DropDownItemSelectEventArgs>

    An event callback of type DropDownItemSelectEventArgs that provides information when an item is selected.

    Remarks

    This event is triggered when a user selects an item from the DropdownButton popup.

    PopupClosed

    Triggers an event callback that is raised when the DropdownButton popup is closed.

    Declaration
    public EventCallback<DropDownPopupClosedEventArgs> PopupClosed { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DropDownPopupClosedEventArgs>

    An event callback of type DropDownPopupClosedEventArgs that provides information when the popup is closed.

    Remarks

    This event is fired when the DropdownButton's popup is closed, whether by user interaction or programmatically.

    PopupClosing

    Gets or sets an event callback that is raised before closing the DropdownButton popup.

    Declaration
    public EventCallback<DropDownPopupCloseEventArgs> PopupClosing { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DropDownPopupCloseEventArgs>

    An event callback of type DropDownPopupCloseEventArgs that provides information before the popup is closed.

    Remarks

    This event provides information before the popup is closed. It can be used to trigger actions or prevent the closing of the popup.

    PopupOpened

    Triggers an event callback that is raised when the DropdownButton popup is opened.

    Declaration
    public EventCallback<DropDownPopupOpenedEventArgs> PopupOpened { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DropDownPopupOpenedEventArgs>

    An event callback of type DropDownPopupOpenedEventArgs that provides information when the popup is opened.

    Remarks

    This event is fired when the DropdownButton's popup is opened. It provides an opportunity to perform any actions before the popup becomes visible.

    PopupOpening

    Gets or sets an event callback that is raised before opening the DropdownButton popup.

    Declaration
    public EventCallback<DropDownPopupOpenEventArgs> PopupOpening { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DropDownPopupOpenEventArgs>

    An event callback of type DropDownPopupOpenEventArgs that provides information before the popup is opened.

    Remarks

    This event provides information before the popup is opened. It can be used to trigger actions or prevent the opening of the popup.

    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