Table of Contents

Class MBFloatingActionButton

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

This is a Material Theme FAB or floating action button, with regular, mini or extended variants, application of the "mdc-fab--exited" animated class and the choice of leading or trailing icons for the extended variant.

public class MBFloatingActionButton : ComponentFoundation, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
MBFloatingActionButton
Implements
Inherited Members

Constructors

MBFloatingActionButton()

public MBFloatingActionButton()

Properties

Exited

When true collapses the FAB.

[Parameter]
public bool Exited { get; set; }

Property Value

bool

Icon

The icon's name.

[Parameter]
public string Icon { get; set; }

Property Value

string

IconFoundry

The foundry to use for both leading and trailing icons.

IconFoundry="IconHelper.MIIcon()"

IconFoundry="IconHelper.FAIcon()"

IconFoundry="IconHelper.OIIcon()"

Overrides IconFoundryName

[Parameter]
public IMBIconFoundry? IconFoundry { get; set; }

Property Value

IMBIconFoundry

Label

Sets the label, which is ignored for anything other than the extended variant.

[Parameter]
public string Label { get; set; }

Property Value

string

TouchTarget

Inclusion of touch target

[Parameter]
public bool? TouchTarget { get; set; }

Property Value

bool?

Type

Sets the FAB to be regular or the mini or extended variants.

[Parameter]
public MBFloatingActionButtonType Type { get; set; }

Property Value

MBFloatingActionButtonType

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnInitializedAsync()

Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.

protected override Task OnInitializedAsync()

Returns

Task

A Task representing any asynchronous operation.

OnParametersSetAsync()

When overriding this, call await base.OnParametersSetAsync(); before any user code unless there is a very good reason not to.

protected override Task OnParametersSetAsync()

Returns

Task