Defines the fluent API for configuring ButtonGroupItem
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ButtonGroupItemBuilder
Inheritance: objectButtonGroupItemBuilder
Inherited Members
Constructors
ButtonGroupItemBuilder method.
Properties
Gets the settings being configured.
protected ButtonGroupItem Container { get; }
Methods
If set to true a default overlay badge will be displayed. If set to a string, an ovelay 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 ButtonGroupItemBuilder Badge(Action<ButtonGroupItemBadgeSettingsBuilder> configurator)
The ButtonGroupItemBadgeSettingsBuilder for the badge setting.
Returns:Returns the current instance of ButtonGroupItemBuilder .
If set to true a default overlay badge will be displayed. If set to a string, an ovelay 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 ButtonGroupItemBuilder Badge(bool enabled)
Enables or disables the badge option.
Returns:Returns the current instance of ButtonGroupItemBadgeSettingsBuilder .
If set to true a default overlay badge will be displayed. If set to a string, an ovelay 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 ButtonGroupItemBuilder Badge(string value)
Sets the value of the badge.
Returns:Specifies if a button is enabled.
public ButtonGroupItemBuilder Enabled(bool value)
The value for Enabled
Returns:Returns the current ButtonGroupItemBuilder instance.
Specifies if text field of the ButtonGroup item should be encoded.
public ButtonGroupItemBuilder Encoded(bool value)
The value for Encoded
Returns:Returns the current ButtonGroupItemBuilder instance.
Defines the name of an existing icon in a Kendo theme that is rendered after the text of the item.
public ButtonGroupItemBuilder EndIcon(string value)
The value for EndIcon
Returns:Returns the current ButtonGroupItemBuilder instance.
Specifies the HTML attributes of a ButtonGroup item.
public ButtonGroupItemBuilder HtmlAttributes(IDictionary<string, object> value)
The value for HtmlAttributes
Returns:Returns the current ButtonGroupItemBuilder instance.
Specifies the HTML attributes of a ButtonGroup item.
public ButtonGroupItemBuilder HtmlAttributes(object value)
The value for HtmlAttributes
Returns:Returns the current ButtonGroupItemBuilder instance.
Defines the name of an existing icon in a Kendo theme.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ButtonGroupItemBuilder Icon(Action<ButtonGroupItemIconSettingsBuilder> configurator)
The ButtonGroupItemIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of ButtonGroupItemBuilder .
Defines the name of an existing icon in a Kendo theme.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ButtonGroupItemBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of ButtonGroupItemBuilder .
Allows the usage of custom icons. Defines CSS classes which are to be applied to a span element inside the ButtonGroup item.
public ButtonGroupItemBuilder IconClass(string value)
The value for IconClass
Returns:Returns the current ButtonGroupItemBuilder instance.
If set, the ButtonGroup will render an image with the specified URL in the button.
public ButtonGroupItemBuilder ImageUrl(string value)
The value for ImageUrl
Returns:Returns the current ButtonGroupItemBuilder instance.
Specifies if a button is initially selected.
public ButtonGroupItemBuilder Selected()
Returns the current ButtonGroupItemBuilder instance.
Specifies if a button is initially selected.
public ButtonGroupItemBuilder Selected(bool value)
The value for Selected
Returns:Returns the current ButtonGroupItemBuilder instance.
Specifies the text of the ButtonGroup item.
public ButtonGroupItemBuilder Text(string value)
The value for Text
Returns:Returns the current ButtonGroupItemBuilder instance.