Class RadzenProfileMenu
RadzenProfileMenu component.
Implements
IDisposable
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenProfileMenu : RadzenComponentWithChildren, IDisposable
Examples
<RadzenProfileMenu>
<RadzenProfileMenuItem Text="Data">
<RadzenProfileMenuItem Text="Orders" Path="orders" />
<RadzenProfileMenuItem Text="Employees" Path="employees" />
</RadzenProfileMenuItemItem>
</RadzenProfileMenu>
Properties
Click
Gets or sets the click callback.
Declaration
public EventCallback<RadzenProfileMenuItem> Click { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<RadzenProfileMenuItem> | The click callback. |
ShowIcon
Show/Hide the "arrow down" icon
Declaration
public bool ShowIcon { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Show the "arrow down" icon. |
Template
Gets or sets the template.
Declaration
public RenderFragment Template { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The template. |
Methods
AddItem(RadzenProfileMenuItem)
Adds the item.
Declaration
public void AddItem(RadzenProfileMenuItem item)
Parameters
Type | Name | Description |
---|---|---|
RadzenProfileMenuItem | item | The item. |
Close()
Closes this instance.
Declaration
public void Close()
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
Toggle(MouseEventArgs)
Toggles the menu open/close state.
Declaration
public async Task Toggle(MouseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | args | The |
Returns
Type | Description |
---|---|
Task |
Implements
IDisposable