RadzenFabMenu Class

RadzenFabMenu component.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenFabMenu

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenFabMenu : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender

Examples

<RadzenFabMenu Icon="add" ToggleIcon="close" AriaLabel="Open menu">
    <RadzenFabMenuItem Text="Folder" Icon="folder" Click=@(args => Console.WriteLine("Folder clicked")) />
    <RadzenFabMenuItem Text="Chat" Icon="chat" Click=@(args => Console.WriteLine("Chat clicked")) />
</RadzenFabMenu>

Constructors

RadzenFabMenuLink to this section

RadzenFabMenu component.

Declaration
public RadzenFabMenu()

Properties

AriaLabelLink to this section

Gets or sets the aria-label for the toggle button.

Declaration
public string AriaLabel { get; set; }
Property Value
Type Description
stringGets or sets the aria-label for the toggle button.

ButtonClassLink to this section

Gets or sets the button class.

Declaration
public string ButtonClass { get; set; }
Property Value
Type Description
stringGets or sets the button class.

ButtonStyleLink to this section

Gets or sets the button style.

Declaration
public ButtonStyle ButtonStyle { get; set; }
Property Value
Type Description
ButtonStyleGets or sets the button style.

ButtonStyleCssLink to this section

Gets or sets the button style CSS.

Declaration
public string ButtonStyleCss { get; set; }
Property Value
Type Description
stringGets or sets the button style CSS.

ChildContentLink to this section

Gets or sets the child content.

Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the child content.

DirectionLink to this section

Gets or sets the direction in which the menu items expand.

Declaration
public FabMenuDirection Direction { get; set; }
Property Value
Type Description
FabMenuDirectionGets or sets the direction in which the menu items expand.

DisabledLink to this section

Gets or sets a value indicating whether this RadzenFabMenu is disabled.

Declaration
public bool Disabled { get; set; }
Property Value
Type Description
boolGets or sets a value indicating whether this RadzenFabMenu is disabled.

GapLink to this section

Gets or sets the gap.

Declaration
public string Gap { get; set; }
Property Value
Type Description
stringGets or sets the gap.

IconLink to this section

Gets or sets the icon.

Declaration
public string Icon { get; set; }
Property Value
Type Description
stringGets or sets the icon.

IsOpenLink to this section

Gets or sets a value indicating whether the menu is open.

Declaration
public bool IsOpen { get; set; }
Property Value
Type Description
boolGets or sets a value indicating whether the menu is open.

IsOpenChangedLink to this section

Gets or sets the IsOpen changed callback.

Declaration
public EventCallback<bool> IsOpenChanged { get; set; }
Property Value
Type Description
EventCallback<bool>Gets or sets the IsOpen changed callback.

ItemsStyleLink to this section

Gets or sets the items style.

Declaration
public string ItemsStyle { get; set; }
Property Value
Type Description
stringGets or sets the items style.

ShadeLink to this section

Gets or sets the shade.

Declaration
public Shade Shade { get; set; }
Property Value
Type Description
ShadeGets or sets the shade.

SizeLink to this section

Gets or sets the size.

Declaration
public ButtonSize Size { get; set; }
Property Value
Type Description
ButtonSizeGets or sets the size.

ToggleButtonStyleLink to this section

Gets or sets the button toggled style.

Declaration
public ButtonStyle ToggleButtonStyle { get; set; }
Property Value
Type Description
ButtonStyleGets or sets the button toggled style.

ToggleIconLink to this section

Gets or sets the toggle icon.

Declaration
public string ToggleIcon { get; set; }
Property Value
Type Description
stringGets or sets the toggle icon.

ToggleShadeLink to this section

Gets or sets the button toggled shade.

Declaration
public Shade ToggleShade { get; set; }
Property Value
Type Description
ShadeGets or sets the button toggled shade.

VariantLink to this section

Gets or sets the variant.

Declaration
public Variant Variant { get; set; }
Property Value
Type Description
VariantGets or sets the variant.

Methods

BuildRenderTreeLink to this section

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

CloseAsyncLink to this section

Closes the menu.

Declaration
public Task CloseAsync()
Returns
Type Description
Task

DisposeLink to this section

Declaration
public override void Dispose()

OnAfterRenderAsyncLink to this section

Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type Name Description
bool firstRender
Returns
Type Description
Task

SetParametersAsyncLink to this section

Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type Name Description
ParameterView parameters
Returns
Type Description
Task

ToggleAsyncLink to this section

Toggles the menu open/closed state.

Declaration
public Task ToggleAsync()
Returns
Type Description
Task
An error has occurred. This app may no longer respond until reloaded. Reload 🗙