Class MBSwitch
This is a general purpose Material Theme switch.
public class MBSwitch : InputComponent<bool>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
MBSwitch
- Implements
- Inherited Members
Constructors
MBSwitch()
public MBSwitch()
Properties
Label
The switch's label
[Parameter]
public string Label { get; set; }
Property Value
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()