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 |
---|---|
Event |
The click callback. |
ClickToOpen
Gets or sets a value indicating whether this Radzen
Declaration
public bool ClickToOpen { get; set; }
Property Value
Type | Description |
---|---|
System. |
|
Responsive
Gets or sets a value indicating whether this Radzen
Declaration
public bool Responsive { get; set; }
Property Value
Type | Description |
---|---|
System. |
|
ToggleAriaLabel
Gets or sets the add button aria-label attribute.
Declaration
public string ToggleAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
AddItem(RadzenMenuItem)
Adds the item.
Declaration
public void AddItem(RadzenMenuItem item)
Parameters
Type | Name | Description |
---|---|---|
Radzen |
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. |
Overrides
OnInitialized()
Called by the Blazor runtime.
Declaration
protected override void OnInitialized()
Overrides
Implements
IDisposable