Class MBIconButtonToggle
This is a general purpose Material Theme icon button toggle, 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.
Implements
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBIconButtonToggle : InputComponent<bool>, IDisposable
Properties
| Improve this Doc View SourceDensity
The button's density.
Declaration
public MBDensity? Density { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBDensity> |
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 |
IconOff
The off-state icon's name.
Declaration
public string IconOff { get; set; }
Property Value
Type | Description |
---|---|
String |
IconOn
The on-state icon's name.
Declaration
public string IconOn { get; set; }
Property Value
Type | Description |
---|---|
String |
TouchTarget
Inclusion of touch target
Declaration
public bool? TouchTarget { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
Methods
| Improve this Doc View SourceOnDisabledSetCallback()
Callback for value the Disabled value setter.
Declaration
protected void OnDisabledSetCallback()
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |
Overrides
Material.Blazor.Internal.InputComponent<System.Boolean>.OnInitializedAsync()
|
Improve this Doc
View Source
OnValueSetCallback()
Callback for value the value setter.
Declaration
protected void OnValueSetCallback()