Table of Contents

Class RadzenSwitch

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

RadzenSwitch component.

public class RadzenSwitch : FormComponent<bool>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRadzenFormComponent
Inheritance
RadzenSwitch
Implements
Inherited Members

Examples

<RadzenSwitch @bind-Value=@value Change=@(args => Console.WriteLine($"Value: {args}")) />

Constructors

RadzenSwitch()

public RadzenSwitch()

Properties

InputAttributes

Specifies additional custom attributes that will be rendered by the input.

[Parameter]
public IReadOnlyDictionary<string, object> InputAttributes { get; set; }

Property Value

IReadOnlyDictionary<string, object>

The attributes.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

GetComponentCssClass()

protected override string GetComponentCssClass()

Returns

string

Toggle()

Toggles this instance checked state.

public Task Toggle()

Returns

Task