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.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBFloatingActionButton : ComponentFoundation, IDisposable
Properties
| Improve this Doc View SourceExited
Leading icon if false, otherwise trailine, and only applied to the extended variant.
Declaration
public bool Exited { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Icon
The icon's name.
Declaration
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
String |
IconFoundry
The foundry to use for both leading and trailing icons.
IconFoundry="IconHelper.MIIcon()"
IconFoundry="IconHelper.FAIcon()"
IconFoundry="IconHelper.OIIcon()"
Overrides IconFoundryName
Declaration
public IMBIconFoundry IconFoundry { get; set; }
Property Value
Type | Description |
---|---|
IMBIconFoundry |
Label
Sets the label, which is ignored for anything other than the extended variant.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
String |
TouchTarget
Inclusion of touch target
Declaration
public bool? TouchTarget { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
Type
Sets the FAB to be regular or the mini or extended variants.
Declaration
public MBFloatingActionButtonType Type { get; set; }
Property Value
Type | Description |
---|---|
MBFloatingActionButtonType |
Methods
| Improve this Doc View SourceOnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |