Defines the fluent API for configuring SegmentedControlItem
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SegmentedControlItemBuilder
Inheritance: objectSegmentedControlItemBuilder
Inherited Members
Constructors
Initializes a new instance of the SegmentedControlItem class.
public SegmentedControlItemBuilder(SegmentedControlItem container)
Properties
Alias for the SegmentedControlItem instance.
protected SegmentedControlItem Container { get; }
Methods
Configures whether an individual button can be enabled or disabled.
public SegmentedControlItemBuilder Enabled(bool value)
The value for Enabled
Returns:Returns the current SegmentedControlItemBuilder instance.
Defines a Kendo UI font or SVG icon that is rendered after the item text.
public SegmentedControlItemBuilder EndIcon(string value)
The value for EndIcon
Returns:Returns the current SegmentedControlItemBuilder instance.
Defines the name for an existing icon in a Kendo UI theme or SVG content. The icon is rendered inside the button.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 SegmentedControlItemBuilder Icon(Action<SegmentedControlItemIconSettingsBuilder> configurator)
The SegmentedControlItemIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of SegmentedControlItemBuilder .
If set, value will be appended to the icon's element class attribute.
public SegmentedControlItemBuilder IconClass(string value)
The value for IconClass
Returns:Returns the current SegmentedControlItemBuilder instance.
If set, the text will be rendered as the button label.
public SegmentedControlItemBuilder Text(string value)
The value for Text
Returns:Returns the current SegmentedControlItemBuilder instance.
Specifies the value that will act as an identifier for the button. Will be supplemented as a data-value attribute.
public SegmentedControlItemBuilder Value(string value)
The value for Value
Returns:Returns the current SegmentedControlItemBuilder instance.