Class RadzenPanelMenuItem
RadzenPanelMenuItem component.
Implements
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenPanelMenuItem : RadzenComponent, IDisposable
Properties
ChildContent
Gets or sets the child content.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The child content. |
Click
Gets or sets the click callback.
Declaration
public EventCallback<MenuItemEventArgs> Click { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<MenuItemEventArgs> | The click callback. |
Expanded
Gets or sets a value indicating whether this RadzenPanelMenuItem is expanded.
Declaration
public bool Expanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ExpandedChanged
Gets or sets the expanded changed callback.
Declaration
public EventCallback<bool> ExpandedChanged { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<System.Boolean> | The expanded changed callback. |
Icon
Gets or sets the icon.
Declaration
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon. |
IconColor
Gets or sets the icon color.
Declaration
public string IconColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon color. |
Image
Gets or sets the image.
Declaration
public string Image { get; set; }
Property Value
Type | Description |
---|---|
System.String | The image. |
ImageAlternateText
Gets or sets the text.
Declaration
public string ImageAlternateText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The text. |
Match
Gets or sets the navigation link match.
Declaration
public NavLinkMatch Match { get; set; }
Property Value
Type | Description |
---|---|
NavLinkMatch | The navigation link match. |
Parent
Gets or sets the parent.
Declaration
public RadzenPanelMenu Parent { get; set; }
Property Value
Type | Description |
---|---|
RadzenPanelMenu | The parent. |
ParentItem
Gets or sets the parent item.
Declaration
public RadzenPanelMenuItem ParentItem { get; set; }
Property Value
Type | Description |
---|---|
RadzenPanelMenuItem | The parent item. |
Path
Gets or sets the path.
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
System.String | The path. |
Selected
Gets or sets a value indicating whether this RadzenPanelMenuItem is selected.
Declaration
public bool Selected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Target
Gets or sets the target.
Declaration
public string Target { get; set; }
Property Value
Type | Description |
---|---|
System.String | The target. |
Template
Gets or sets the template.
Declaration
public RenderFragment Template { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The template. |
Text
Gets or sets the text.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | The text. |
Value
Gets or sets the value.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The value. |
Methods
AddItem(RadzenPanelMenuItem)
Adds the item.
Declaration
public void AddItem(RadzenPanelMenuItem item)
Parameters
Type | Name | Description |
---|---|---|
RadzenPanelMenuItem | item | The item. |
Dispose()
Detaches event handlers and disposes Reference.
Declaration
public override void Dispose()
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
OnClick(MouseEventArgs)
Handles the Click event.
Declaration
public async Task OnClick(MouseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | args | The |
Returns
Type | Description |
---|---|
Task |
Select(Boolean)
Selects the specified item by value.
Declaration
public void Select(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | if set to |
SetParametersAsync(ParameterView)
Called by the Blazor runtime when parameters are set.
Declaration
public override async Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task |