Table of Contents

Class RadzenMenuItem

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

RadzenMenuItem component.

public class RadzenMenuItem : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
RadzenMenuItem
Implements
Inherited Members

Constructors

RadzenMenuItem()

public RadzenMenuItem()

Properties

ChildContent

Gets or sets the child content.

[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

The child content.

Click

Gets or sets the click callback.

[Parameter]
public EventCallback<MenuItemEventArgs> Click { get; set; }

Property Value

EventCallback<MenuItemEventArgs>

The click callback.

Disabled

Gets a value indicating whether this instance is disabled.

[Parameter]
public bool Disabled { get; set; }

Property Value

bool

true if this instance is disabled; otherwise, false.

Icon

Gets or sets the icon.

[Parameter]
public string Icon { get; set; }

Property Value

string

The icon.

IconColor

Gets or sets the icon color.

[Parameter]
public string IconColor { get; set; }

Property Value

string

The icon color.

Image

Gets or sets the image.

[Parameter]
public string Image { get; set; }

Property Value

string

The image.

ImageAlternateText

Gets or sets the text.

[Parameter]
public string ImageAlternateText { get; set; }

Property Value

string

The text.

ImageStyle

Gets or sets the image style.

[Parameter]
public string ImageStyle { get; set; }

Property Value

string

The image style.

Match

Gets or sets the navigation link match.

[Parameter]
public NavLinkMatch Match { get; set; }

Property Value

NavLinkMatch

The navigation link match.

Parent

Gets or sets the parent.

[CascadingParameter]
public RadzenMenu Parent { get; set; }

Property Value

RadzenMenu

The parent.

ParentItem

Gets or sets the parent item.

[CascadingParameter]
public RadzenMenuItem ParentItem { get; set; }

Property Value

RadzenMenuItem

The parent item.

Path

Gets or sets the path.

[Parameter]
public string Path { get; set; }

Property Value

string

The path.

Target

Gets or sets the target.

[Parameter]
public string Target { get; set; }

Property Value

string

The target.

Template

Gets or sets the template.

[Parameter]
public RenderFragment Template { get; set; }

Property Value

RenderFragment

The template.

Text

Gets or sets the text.

[Parameter]
public string Text { get; set; }

Property Value

string

The text.

Value

Gets or sets the value.

[Parameter]
public object Value { get; set; }

Property Value

object

The value.

Methods

AddItem(RadzenMenuItem)

Adds the item.

public void AddItem(RadzenMenuItem item)

Parameters

item RadzenMenuItem

The item.

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

Close()

Close the menu item.

public Task Close()

Returns

Task

GetComponentCssClass()

protected override string GetComponentCssClass()

Returns

string

OnClick(MouseEventArgs)

Handles the Click event.

public Task OnClick(MouseEventArgs args)

Parameters

args MouseEventArgs

The MouseEventArgs instance containing the event data.

Returns

Task

Open()

Open the menu item.

public Task Open()

Returns

Task

Toggle()

Toggle the menu item.

public Task Toggle()

Returns

Task