ButtonGroupBuilder
Defines the fluent API for configuring the Kendo UI ButtonGroup
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ButtonGroupBuilder : WidgetBuilderBase<ButtonGroup, ButtonGroupBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<ButtonGroup, ButtonGroupBuilder>ButtonGroupBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ButtonGroupBuilder class.
Methods
BindTo method of the ButtonGroup
public ButtonGroupBuilder BindTo(IEnumerable<ButtonGroupItem> items)
The action that configures the items.
Returns:Defines if the widget is initially enabled or disabled. By default, it is enabled.
public ButtonGroupBuilder Enable(bool value)
The value for Enable
Returns:Returns the current ButtonGroupBuilder instance.
Configures the client-side events.
public ButtonGroupBuilder Events(Action<ButtonGroupEventBuilder> configurator)
The client events action.
Returns:Returns the current ButtonGroupBuilder instance.
Sets a value controlling how the color is applied.
public ButtonGroupBuilder FillMode(ButtonFillMode value)
The value for FillMode
Returns:Returns the current ButtonGroupBuilder instance.
Defines the initially selected Button (zero based index).
public ButtonGroupBuilder Index(double value)
The value for Index
Returns:Returns the current ButtonGroupBuilder instance.
A JavaScript array that contains the ButtonGroup's items configuration.
public ButtonGroupBuilder Items(Action<ButtonGroupItemFactory> configurator)
The ButtonGroupItemFactory for the items setting.
Returns:Returns the current instance of ButtonGroupBuilder .
Sets a value controlling the border radius.
public ButtonGroupBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current ButtonGroupBuilder instance.
Defines the selection type. Allows the following values: single (default): allows only a single button to be the currently selected in the group.; multiple: allows multiple buttons to be selected in the group at the same time. or none: does not allow selection. ButtonGroups acts as a group of clickable Buttons..
public ButtonGroupBuilder Selection(string value)
The value for Selection
Returns:Returns the current ButtonGroupBuilder instance.
Sets the size of the component.
public ButtonGroupBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current ButtonGroupBuilder instance.
Sets the color of the component according to the applied theme.
public ButtonGroupBuilder ThemeColor(ThemeColor value)
The value for ThemeColor
Returns:Returns the current ButtonGroupBuilder instance.