Class RadzenMenuItem
RadzenMenuItem component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenMenuItem : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposableConstructors
RadzenMenuItem()
RadzenMenuItem component.
Declaration
public RadzenMenuItem()Properties
ChildContent
Gets or sets the child content.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }Property Value
| Type | Description | 
|---|---|
| RenderFragment | The child content. | 
Click
Gets or sets the click callback.
Declaration
[Parameter]
public EventCallback<MenuItemEventArgs> Click { get; set; }Property Value
| Type | Description | 
|---|---|
| EventCallback<MenuItemEventArgs> | The click callback. | 
Disabled
Gets a value indicating whether this instance is disabled.
Declaration
[Parameter]
public bool Disabled { get; set; }Property Value
| Type | Description | 
|---|---|
| bool | 
 | 
Icon
Gets or sets the icon.
Declaration
[Parameter]
public string Icon { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The icon. | 
IconColor
Gets or sets the icon color.
Declaration
[Parameter]
public string IconColor { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The icon color. | 
Image
Gets or sets the image.
Declaration
[Parameter]
public string Image { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The image. | 
ImageAlternateText
Gets or sets the text.
Declaration
[Parameter]
public string ImageAlternateText { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The text. | 
ImageStyle
Gets or sets the image style.
Declaration
[Parameter]
public string ImageStyle { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The image style. | 
Match
Gets or sets the navigation link match.
Declaration
[Parameter]
public NavLinkMatch Match { get; set; }Property Value
| Type | Description | 
|---|---|
| NavLinkMatch | The navigation link match. | 
Parent
Gets or sets the parent.
Declaration
[CascadingParameter]
public RadzenMenu Parent { get; set; }Property Value
| Type | Description | 
|---|---|
| RadzenMenu | The parent. | 
ParentItem
Gets or sets the parent item.
Declaration
[CascadingParameter]
public RadzenMenuItem ParentItem { get; set; }Property Value
| Type | Description | 
|---|---|
| RadzenMenuItem | The parent item. | 
Path
Gets or sets the path.
Declaration
[Parameter]
public string Path { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The path. | 
Target
Gets or sets the target.
Declaration
[Parameter]
public string Target { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The target. | 
Template
Gets or sets the template.
Declaration
[Parameter]
public RenderFragment Template { get; set; }Property Value
| Type | Description | 
|---|---|
| RenderFragment | The template. | 
Text
Gets or sets the text.
Declaration
[Parameter]
public string Text { get; set; }Property Value
| Type | Description | 
|---|---|
| string | The text. | 
Value
Gets or sets the value.
Declaration
[Parameter]
public object Value { get; set; }Property Value
| Type | Description | 
|---|---|
| object | The value. | 
Methods
AddItem(RadzenMenuItem)
Adds the item.
Declaration
public void AddItem(RadzenMenuItem item)Parameters
| Type | Name | Description | 
|---|---|---|
| RadzenMenuItem | item | The item. | 
BuildRenderTree(RenderTreeBuilder)
RadzenMenuItem component.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)Parameters
| Type | Name | Description | 
|---|---|---|
| RenderTreeBuilder | __builder | 
Overrides
Close()
Close the menu item.
Declaration
public Task Close()Returns
| Type | Description | 
|---|---|
| Task | 
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()Returns
| Type | Description | 
|---|---|
| string | 
Overrides
OnClick(MouseEventArgs)
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 | 
Open()
Open the menu item.
Declaration
public Task Open()Returns
| Type | Description | 
|---|---|
| Task | 
Toggle()
Toggle the menu item.
Declaration
public Task Toggle()Returns
| Type | Description | 
|---|---|
| Task |