Class RadzenSwitch
RadzenSwitch component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenSwitch : FormComponent<bool>, IDisposable, IRadzenFormComponent
Examples
<RadzenSwitch @bind-Value=@value Change=@(args => Console.WriteLine($"Value: {args}")) />
Properties
InputAttributes
Specifies additional custom attributes that will be rendered by the input.
Declaration
public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<System.String, System.Object> | The attributes. |
Methods
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
Toggle()
Toggles this instance checked state.
Declaration
public async System.Threading.Tasks.Task Toggle()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Implements
IDisposable