ToggleButtonBuilder
Defines the fluent API for configuring the Kendo ToggleButton for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ToggleButtonBuilder : WidgetBuilderBase<ToggleButton, ToggleButtonBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<ToggleButton, ToggleButtonBuilder>ToggleButtonBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ToggleButton class.
public ToggleButtonBuilder(ToggleButton component)
The component.
Methods
If set to true a default overlay badge will be displayed. If set to a string, an overlay with content set to the specified string will be displayed. Can be set to a JavaScript object which represents the configuration of the Badge widget.
public ToggleButtonBuilder Badge(Action<ToggleButtonBadgeSettingsBuilder> configurator)
The action that configures the badge.
Returns:Sets the HTML content of the Button.
public ToggleButtonBuilder Content(Action content)
The action which renders the HTML content.
Returns:Sets the HTML content of the Button.
public ToggleButtonBuilder Content(string content)
The HTML content.
Returns:Sets whether the component should be enabled or disabled.
public ToggleButtonBuilder Enable(bool value)
The value that configures the enable.
Returns:Configures the client-side events.
public ToggleButtonBuilder Events(Action<ToggleButtonEventBuilder> configurator)
The client events action.
Returns:Sets a value controlling how the color is applied.
public ToggleButtonBuilder FillMode(FillMode value)
The value that configures the fillmode.
Returns:Specifies a group of ToggleButtons the current instance belongs to. The string will be rendered as a value of the data-group attribute of the widget's element.
public ToggleButtonBuilder Group(string value)
The value that configures the group.
Returns:Sets the icon of the component.
public ToggleButtonBuilder Icon(string value)
The value that configures the icon.
Returns:Sets the icon class of the component.
public ToggleButtonBuilder IconClass(string value)
The value that configures the iconclass.
Returns:Sets the image url for the and img element inside the component.
public ToggleButtonBuilder ImageUrl(string value)
The value that configures the imageurl.
Returns:Sets a value controlling the border radius.
public ToggleButtonBuilder Rounded(Rounded value)
The value that configures the rounded.
Returns:Specifies the selected state of the ToggleButtons. If set to true the widget will be initially selected.
public ToggleButtonBuilder Selected(bool value)
The value that configures the selected.
Returns:Sets the size of the component.
public ToggleButtonBuilder Size(ButtonSize value)
The value that configures the size.
Returns:Sets the CSS class, which will be used for applying a background image to a span element inside the component.
public ToggleButtonBuilder SpriteCssClass(string value)
The value that configures the spritecssclass.
Returns:Sets the ToggleButton HTML tag. A button tag is used by default.
public ToggleButtonBuilder Tag(string tag)
The name of the Html element from which the button is initialized.
Returns:Sets the color of the component according to the applied theme.
public ToggleButtonBuilder ThemeColor(ThemeColor value)
The value that configures the themecolor.
Returns: