Class RadzenFabMenu
RadzenFabMenu component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenFabMenu : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
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
RadzenFabMenu()
RadzenFabMenu component.
Declaration
public RadzenFabMenu()
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>
Properties
AriaLabel
Gets or sets the aria-label for the toggle button.
Declaration
[Parameter]
public string AriaLabel { get; set; }
Property Value
Type | Description |
---|---|
string | The aria-label for the toggle button. |
ButtonClass
Gets or sets the button class.
Declaration
[Parameter]
public string ButtonClass { get; set; }
Property Value
Type | Description |
---|---|
string | The button class. |
ButtonStyle
Gets or sets the button style.
Declaration
[Parameter]
public ButtonStyle ButtonStyle { get; set; }
Property Value
Type | Description |
---|---|
ButtonStyle | The button style. |
ButtonStyleCss
Gets or sets the button style CSS.
Declaration
[Parameter]
public string ButtonStyleCss { get; set; }
Property Value
Type | Description |
---|---|
string | The button style CSS. |
ChildContent
Gets or sets the child content.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The child content. |
Direction
Gets or sets the direction in which the menu items expand.
Declaration
[Parameter]
public FabMenuDirection Direction { get; set; }
Property Value
Type | Description |
---|---|
FabMenuDirection | The expansion direction. |
Disabled
Gets or sets a value indicating whether this RadzenFabMenu is disabled.
Declaration
[Parameter]
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Gap
Gets or sets the gap.
Declaration
[Parameter]
public string Gap { get; set; }
Property Value
Type | Description |
---|---|
string | The gap. |
Icon
Gets or sets the icon.
Declaration
[Parameter]
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
string | The icon. |
IsOpen
Gets or sets a value indicating whether the menu is open.
Declaration
[Parameter]
public bool IsOpen { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
IsOpenChanged
Gets or sets the IsOpen changed callback.
Declaration
[Parameter]
public EventCallback<bool> IsOpenChanged { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<bool> | The IsOpen changed callback. |
ItemsStyle
Gets or sets the items style.
Declaration
[Parameter]
public string ItemsStyle { get; set; }
Property Value
Type | Description |
---|---|
string | The items style. |
Shade
Gets or sets the shade.
Declaration
[Parameter]
public Shade Shade { get; set; }
Property Value
Type | Description |
---|---|
Shade | The shade. |
Size
Gets or sets the size.
Declaration
[Parameter]
public ButtonSize Size { get; set; }
Property Value
Type | Description |
---|---|
ButtonSize | The size. |
ToggleButtonStyle
Gets or sets the button toggled style.
Declaration
[Parameter]
public ButtonStyle ToggleButtonStyle { get; set; }
Property Value
Type | Description |
---|---|
ButtonStyle | The button toggled style. |
ToggleIcon
Gets or sets the toggle icon.
Declaration
[Parameter]
public string ToggleIcon { get; set; }
Property Value
Type | Description |
---|---|
string | The toggle icon. |
ToggleShade
Gets or sets the button toggled shade.
Declaration
[Parameter]
public Shade ToggleShade { get; set; }
Property Value
Type | Description |
---|---|
Shade | The button toggled shade. |
Variant
Gets or sets the variant.
Declaration
[Parameter]
public Variant Variant { get; set; }
Property Value
Type | Description |
---|---|
Variant | The variant. |
Methods
BuildRenderTree(RenderTreeBuilder)
RadzenFabMenu component.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
CloseAsync()
Closes the menu.
Declaration
[JSInvokable]
public Task CloseAsync()
Returns
Type | Description |
---|---|
Task |
Dispose()
Detaches event handlers and disposes Reference.
Declaration
public override void Dispose()
Overrides
OnAfterRenderAsync(bool)
Called by the Blazor runtime.
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type | Name | Description |
---|---|---|
bool | firstRender |
Returns
Type | Description |
---|---|
Task |
Overrides
SetParametersAsync(ParameterView)
Called by the Blazor runtime when parameters are set.
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task |
Overrides
ToggleAsync()
Toggles the menu open/closed state.
Declaration
public Task ToggleAsync()
Returns
Type | Description |
---|---|
Task |