Switch Class

Use the Blazor Bootstrap Switch> component to show the consistent cross-browser and cross-device custom checkboxes.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class Switch : BlazorBootstrapComponentBase
Inheritance
Object    ComponentBase    BlazorBootstrapComponentBase    Switch

Constructors

SwitchInitializes a new instance of the Switch class

Properties

Disabled Gets or sets the disabled state.
Label Gets or sets the label.
Reverse Determines whether to put the switch on the opposite side.
Value Gets or sets the value.
ValueChanged This event is fired when the switch selection changes.
ValueExpression An expression that identifies the bound value.

Methods

Disable Disables switch.
Enable Enables switch.
SetParametersAsync Parameters are loaded manually for sake of performance; if we were to use System.Reflection magic, it would hurt performance if components were used in large numbers.
(Overrides ComponentBaseSetParametersAsync(ParameterView))

See Also