Switch (Blazor)
This article demonstrates how to use the Switch component. Check also the component guide and API reference.
Switch Properties
Name | Type | Default | Description |
---|---|---|---|
Name | string | ‘switch’ + index suffix | Unique name of the Switch. |
Value | string/expression | null | Switch value. |
Disabled | boolean/expression | false | Is Switch disabled. |
Visible | boolean/expression | true | Is Switch visible. |
For more info about expressions please visit expressions in our documentation.
Switch Events
Name | Type | Default | Description |
---|---|---|---|
Change | event | null | Change event of the Switch. New value as event argument. |
For more info about event actions please visit event actions in our documentation.
Blazor declaration
<RadzenSwitch Change="SwitchChanged" />