Class MBFloatingActionButton
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
Icon
The icon's name.
[Parameter]
public string Icon { get; set; }
Property Value
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
Label
Sets the label, which is ignored for anything other than the extended variant.
[Parameter]
public string Label { get; set; }
Property Value
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
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
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()