Class MBIconButton
This is a general purpose Material Theme icon button, with provision for standard MB styling, leading and trailing icons and all standard Blazor events. Adds the "mdc-card__action--icon" class when placed inside an MBCard.
public class MBIconButton : ComponentFoundation, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
MBIconButton
- Implements
- Inherited Members
Constructors
MBIconButton()
public MBIconButton()
Properties
BadgeExited
When true collapses the badge.
[Parameter]
public bool BadgeExited { get; set; }
Property Value
BadgeStyle
The badge's style - see MBBadgeStyle, defaults to ValueBearing.
[Parameter]
public MBBadgeStyle BadgeStyle { get; set; }
Property Value
BadgeValue
The button's density.
[Parameter]
public string BadgeValue { get; set; }
Property Value
Density
The button's density.
[Parameter]
public MBDensity? Density { get; set; }
Property Value
HasBadge
Determines whether the button has a badge - defaults to false.
[Parameter]
public bool HasBadge { 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
TouchTarget
Inclusion of touch target
[Parameter]
public bool? TouchTarget { get; set; }
Property Value
- bool?
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()