Class RadzenMenu
RadzenMenu component.
Implements
IDisposable
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenMenu : RadzenComponentWithChildren, IDisposable
Examples
<RadzenMenu>
<RadzenMenuItem Text="Data">
<RadzenMenuItem Text="Orders" Path="orders" />
<RadzenMenuItem Text="Employees" Path="employees" />
</RadzenMenuItemItem>
</RadzenMenu>
Properties
Click
Gets or sets the click callback.
Declaration
public EventCallback<MenuItemEventArgs> Click { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<MenuItemEventArgs> | The click callback. |
ClickToOpen
Gets or sets a value indicating whether this RadzenMenu should open item on click or on hover.
Declaration
public bool ClickToOpen { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Responsive
Gets or sets a value indicating whether this RadzenMenu is responsive.
Declaration
public bool Responsive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ToggleAriaLabel
Gets or sets the add button aria-label attribute.
Declaration
public string ToggleAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
AddItem(RadzenMenuItem)
Adds the item.
Declaration
public void AddItem(RadzenMenuItem item)
Parameters
Type | Name | Description |
---|---|---|
RadzenMenuItem | item | The item. |
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
Implements
IDisposable