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
Defines the size of the switch. The default value is Medium.
Declaration
public string Size { get; set; }
Property Value
System.String
|
ThumbRounded
Defines the roundness of the switch thumb. The default value is Full.
Declaration
public string ThumbRounded { get; set; }
Property Value
System.String
|
TrackRounded
Defines the roundness of the switch track. The default value is Full.
Declaration
public string TrackRounded { get; set; }
Property Value
System.String
|
Width
Defines the width of the Component as a CSS value.
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
|