RadzenPanelMenu Class

RadzenPanelMenu component.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenComponentWithChildren

RadzenPanelMenu

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenPanelMenu : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender

Examples

<RadzenPanelMenu>
    <RadzenPanelMenuItem Text="Data">
        <RadzenPanelMenuItem Text="Orders" Path="orders" />
        <RadzenPanelMenuItem Text="Employees" Path="employees" />
    </RadzenPanelMenuItemItem>
</RadzenPanelMenu>

Constructors

RadzenPanelMenuLink to this section

RadzenPanelMenu component.

Declaration
public RadzenPanelMenu()

Properties

AriaLabelLink to this section

Gets or sets the menu aria label text.

Declaration
public string AriaLabel { get; set; }
Property Value
Type Description
stringGets or sets the menu aria label text.

ClickLink to this section

Gets or sets the click callback.

Declaration
public EventCallback<MenuItemEventArgs> Click { get; set; }
Property Value
Type Description
EventCallback<MenuItemEventArgs>Gets or sets the click callback.

DisplayStyleLink to this section

Gets or sets the display style.

Declaration
public MenuItemDisplayStyle DisplayStyle { get; set; }
Property Value
Type Description
MenuItemDisplayStyleGets or sets the display style.

MatchLink to this section

Gets or sets a value representing the URL matching behavior.

Declaration
public Routing.NavLinkMatch Match { get; set; }
Property Value
Type Description
Routing.NavLinkMatchGets or sets a value representing the URL matching behavior.

MultipleLink to this section

Gets or sets a value indicating whether multiple items can be expanded.

Declaration
public bool Multiple { get; set; }
Property Value
Type Description
boolGets or sets a value indicating whether multiple items can be expanded.

RenderModeLink to this section

Gets or sets how child items of expandable items are rendered. Set to Client by default which renders the whole menu up front. Use Server to render collapsed branches only when they are expanded, which keeps the DOM small for large menus.

Declaration
public PanelMenuRenderMode RenderMode { get; set; }
Property Value
Type Description
PanelMenuRenderModeGets or sets how child items of expandable items are rendered. Set to Client by default which renders the whole menu up front. Use Server to render collapsed branches only when they are expanded, which keeps the DOM small for large menus.

ShowArrowLink to this section

Gets or sets the show arrow.

Declaration
public bool ShowArrow { get; set; }
Property Value
Type Description
boolGets or sets the show arrow.

Methods

AddItemLink to this section

Adds the item.

Declaration
public void AddItem(RadzenPanelMenuItem item)
Parameters
Type Name Description
RadzenPanelMenuItem item The item.

BuildRenderTreeLink to this section

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

GetComponentCssClassLink to this section

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

SetParametersAsyncLink to this section

Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type Name Description
ParameterView parameters
Returns
Type Description
Task
An error has occurred. This app may no longer respond until reloaded. Reload 🗙