Class TelerikSwitch<TValue>
The class for the Telerik Switch component.
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikSwitch<TValue> : TelerikInputBase<TValue>, IDisposable, ILabelableInput
Type Parameters
TValue
|
Constructors
TelerikSwitch()
Declaration
public TelerikSwitch()
Properties
OffLabel
Defines the off label of the switch. If not set, its value is set through the localizaiton Switch_OffLabel, or "Off" if there is no localization.
Declaration
public string OffLabel { get; set; }
Property Value
System.String
|
OnLabel
Defines the on label of the switch. If not set, its value is set through the localizaiton Switch_OnLabel, or "On" if there is no localization.
Declaration
public string OnLabel { get; set; }
Property Value
System.String
|
Size
Specifies the size of the switch. Default value is Medium.
Declaration
public string Size { get; set; }
Property Value
System.String
|
ThumbRounded
Specifies the roundness of the switch thumb. Default value is Full.
Declaration
public string ThumbRounded { get; set; }
Property Value
System.String
|
TrackRounded
Specifies the roundness of the switch track. Default value is Full.
Declaration
public string TrackRounded { get; set; }
Property Value
System.String
|
Width
Defines the width of the component.
Declaration
public string Width { get; set; }
Property Value
System.String
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
OnAfterRender(Boolean)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
System.Boolean
firstRender
|