SwitchBuilder
Defines the fluent API for configuring the Kendo Switch for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SwitchBuilder : WidgetBuilderBase<Switch, SwitchBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Switch, SwitchBuilder>SwitchBuilder
Implements:
Inherited Members
Constructors
Methods
The checked state of the widget.
public SwitchBuilder Checked(bool value)
The value that configures the checked.
Returns:Defines the text of the checked and unchecked labels that are shown within the Switch. All labels could be localized.
public SwitchBuilder Enabled(bool value)
The value that configures the enable.
Returns:Configures the client-side events.
public SwitchBuilder Events(Action<SwitchEventBuilder> configurator)
The client events action.
Returns:Defines the text of the checked and unchecked labels that are shown within the Switch. All labels could be localized.
public SwitchBuilder Messages(Action<SwitchMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:If set to true the Kendo UI Switch will render into its read-only state.
public SwitchBuilder ReadOnly(bool value)
The value that configures the readonly.
Returns:Sets the size of the component.
public SwitchBuilder Size(ComponentSize? value)
The value for Size
Returns:Sets a value controlling the thumb's border radius.
public SwitchBuilder ThumbRounded(Rounded? value)
The value for ThumbRounded
Returns:Sets a value controlling the track's border radius.
public SwitchBuilder TrackRounded(Rounded? value)
The value for TrackRounded
Returns:The width of the Kendo UI Switch.
public SwitchBuilder Width(object value)
The value that configures the width.
Returns: