Class MBCheckbox
This is a general purpose Material Theme check box accepting a boolean as a bound value. This check box does not implement indeteriminate state.
public class MBCheckbox : InputComponent<bool>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
MBCheckbox
- Implements
- Inherited Members
Constructors
MBCheckbox()
public MBCheckbox()
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 checkbox'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
IsIndeterminate
Set to True if the checkbox is indeterminate.
[Parameter]
public bool IsIndeterminate { get; set; }
Property Value
IsIndeterminateChanged
Gets or sets a callback that updates the bound value.
[Parameter]
public EventCallback<bool> IsIndeterminateChanged { get; set; }
Property Value
Label
The check box label.
[Parameter]
public string Label { 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()
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()