Defines the fluent API for configuring the Kendo UI SegmentedControl
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SegmentedControlBuilder : WidgetBuilderBase<SegmentedControl, SegmentedControlBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<SegmentedControl, SegmentedControlBuilder>SegmentedControlBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the SegmentedControlBuilder class.
Methods
Configures whether the SegmentedControl will be enabled or disabled.
public SegmentedControlBuilder Enabled(bool value)
The value for Enabled
Returns:Returns the current SegmentedControlBuilder instance.
Configures the client-side events.
public SegmentedControlBuilder Events(Action<SegmentedControlEventBuilder> configurator)
The client events action.
Returns:Returns the current SegmentedControlBuilder instance.
Configures the different buttons that will be rendered inside the SegmentedControl.
public SegmentedControlBuilder Items(Action<SegmentedControlItemFactory> configurator)
The SegmentedControlItemFactory for the items setting.
Returns:Returns the current instance of SegmentedControlBuilder .
Sets a value that will shape the layout mode of the SegmentedControl.
public SegmentedControlBuilder LayoutMode(SegmentedButtonLayoutMode value)
The value for LayoutMode
Returns:Returns the current SegmentedControlBuilder instance.
Sets a value controlling the border radius.
public SegmentedControlBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current SegmentedControlBuilder instance.
The selected value of the component. Must match the value of one of the items.
public SegmentedControlBuilder SelectedValue(string value)
The value for SelectedValue
Returns:Returns the current SegmentedControlBuilder instance.
Sets the size of the component.
public SegmentedControlBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current SegmentedControlBuilder instance.