Search results

Set disabled state in Blazor Toggle Switch Button component

28 Jul 2021 / 1 minute to read

Toggle Switch Button can be disabled by setting the Disabled property to true.

The following example illustrates how to disable support in Toggle Switch Button component.

Copied to clipboard
@using Syncfusion.Blazor.Buttons

<SfSwitch Disabled="true" @bind-Checked="isChecked"></SfSwitch>

@code {
    private bool isChecked = false;

Output be like

Switch Sample