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

RadzenFabMenu component.

Declaration
public RadzenFabMenu()

Properties

AriaLabellink

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

Gets or sets the button class.

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

ButtonStylelink

Gets or sets the button style.

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

ButtonStyleCsslink

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

Gets or sets the child content.

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

Directionlink

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

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

Gets or sets the gap.

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

Iconlink

Gets or sets the icon.

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

IsOpenlink

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

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

Gets or sets the items style.

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

Shadelink

Gets or sets the shade.

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

Sizelink

Gets or sets the size.

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

ToggleButtonStylelink

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

Gets or sets the toggle icon.

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

ToggleShadelink

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

Gets or sets the variant.

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

Methods

BuildRenderTreelink

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

CloseAsynclink

Closes the menu.

Declaration
public Task CloseAsync()
Returns
Type Description
Task

Disposelink

Declaration
public override void Dispose()

OnAfterRenderAsynclink

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

SetParametersAsynclink

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

ToggleAsynclink

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 🗙