Switch
Class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
C#
public class Switch : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseSwitch
Implements:
Inherited Members
Constructors
C#
public Switch(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Properties
Defines the text of the checked and unchecked labels that are shown within the Switch. All labels could be localized.
C#
public SwitchMessagesSettings Messages { get; set; }
Sets the size of the component.
C#
public ComponentSize? Size { get; set; }
Sets a value controlling the thumb's border radius.
C#
public Rounded? ThumbRounded { get; set; }
Sets a value controlling the track's border radius.
C#
public Rounded? TrackRounded { get; set; }
Methods
C#
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
C#
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
C#
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: