RadzenMenuItem Class

RadzenMenuItem component.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenMenuItem

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenMenuItem : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenMenuItemlink

RadzenMenuItem component.

Declaration
public RadzenMenuItem()

Properties

ChildContentlink

Gets or sets the child content.

Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the child content.

Clicklink

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.

Disabledlink

Gets a value indicating whether this instance is disabled.

Declaration
public bool Disabled { get; set; }
Property Value
Type Description
boolGets a value indicating whether this instance is disabled.

Iconlink

Gets or sets the icon.

Declaration
public string Icon { get; set; }
Property Value
Type Description
stringGets or sets the icon.

IconColorlink

Gets or sets the icon color.

Declaration
public string IconColor { get; set; }
Property Value
Type Description
stringGets or sets the icon color.

Imagelink

Gets or sets the image.

Declaration
public string Image { get; set; }
Property Value
Type Description
stringGets or sets the image.

ImageAlternateTextlink

Gets or sets the text.

Declaration
public string ImageAlternateText { get; set; }
Property Value
Type Description
stringGets or sets the text.

ImageStylelink

Gets or sets the image style.

Declaration
public string ImageStyle { get; set; }
Property Value
Type Description
stringGets or sets the image style.

Matchlink

Gets or sets the navigation link match.

Declaration
public Routing.NavLinkMatch Match { get; set; }
Property Value
Type Description
Routing.NavLinkMatchGets or sets the navigation link match.

Parentlink

Gets or sets the parent.

Declaration
public RadzenMenu Parent { get; set; }
Property Value
Type Description
RadzenMenuGets or sets the parent.

ParentItemlink

Gets or sets the parent item.

Declaration
public RadzenMenuItem ParentItem { get; set; }
Property Value
Type Description
RadzenMenuItemGets or sets the parent item.

Pathlink

Gets or sets the path.

Declaration
public string Path { get; set; }
Property Value
Type Description
stringGets or sets the path.

Targetlink

Gets or sets the target.

Declaration
public string Target { get; set; }
Property Value
Type Description
stringGets or sets the target.

Templatelink

Gets or sets the template.

Declaration
public RenderFragment Template { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the template.

Textlink

Gets or sets the text.

Declaration
public string Text { get; set; }
Property Value
Type Description
stringGets or sets the text.

Valuelink

Gets or sets the value.

Declaration
public object Value { get; set; }
Property Value
Type Description
objectGets or sets the value.

Methods

AddItemlink

Adds the item.

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

BuildRenderTreelink

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

Closelink

Close the menu item.

Declaration
public Task Close()
Returns
Type Description
Task

GetComponentCssClasslink

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

OnClicklink

Handles the click event.

Declaration
public Task OnClick(MouseEventArgs args)
Parameters
Type Name Description
MouseEventArgs args The MouseEventArgs instance containing the event data.
Returns
Type Description
Task

Openlink

Open the menu item.

Declaration
public Task Open()
Returns
Type Description
Task

Togglelink

Toggle the menu item.

Declaration
public Task Toggle()
Returns
Type Description
Task
An error has occurred. This app may no longer respond until reloaded. Reload 🗙