RadzenProfileMenu Class

RadzenProfileMenu component.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenComponentWithChildren

RadzenProfileMenu

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenProfileMenu : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender

Examples

<RadzenProfileMenu>
    <RadzenProfileMenuItem Text="Data">
        <RadzenProfileMenuItem Text="Orders" Path="orders" />
        <RadzenProfileMenuItem Text="Employees" Path="employees" />
    </RadzenProfileMenuItemItem>
</RadzenProfileMenu>

Constructors

RadzenProfileMenulink

RadzenProfileMenu component.

Declaration
public RadzenProfileMenu()

Properties

Clicklink

Gets or sets the click callback.

Declaration
public EventCallback<RadzenProfileMenuItem> Click { get; set; }
Property Value
Type Description
EventCallback<RadzenProfileMenuItem>Gets or sets the click callback.

ShowIconlink

Show/Hide the "arrow down" icon

Declaration
public bool ShowIcon { get; set; }
Property Value
Type Description
boolShow/Hide the "arrow down" icon

Templatelink

Gets or sets the template.

Declaration
public RenderFragment Template { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the template.

ToggleAriaLabellink

Gets or sets the toggle aria label text.

Declaration
public string ToggleAriaLabel { get; set; }
Property Value
Type Description
stringGets or sets the toggle aria label text.

Methods

AddItemlink

Adds the item.

Declaration
public void AddItem(RadzenProfileMenuItem item)
Parameters
Type Name Description
RadzenProfileMenuItem item The item.

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

Closelink

Closes this instance.

Declaration
public void Close()

GetComponentCssClasslink

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

Togglelink

Toggles the menu open/close state.

Declaration
public Task Toggle(MouseEventArgs args)
Parameters
Type Name Description
MouseEventArgs args The MouseEventArgs instance containing the event data.
Returns
Type Description
Task
An error has occurred. This app may no longer respond until reloaded. Reload 🗙