TabStripBuilder
Defines the fluent API for configuring the Kendo UI TabStrip
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class TabStripBuilder : WidgetBuilderBase<TabStrip, TabStripBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<TabStrip, TabStripBuilder>TabStripBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the TabStripBuilder class.
Methods
Configures the animation effects of the TabStrip.
public TabStripBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action that configures the animation.
Returns:Returns the current TabStripBuilder instance.
Configures the animation effects of the TabStrip.
public TabStripBuilder Animation(bool enable)
Whether the component animation is enabled.
Returns:Returns the current TabStripBuilder instance.
Binds the tabstrip to a list of objects.
public TabStripBuilder BindTo<T>(IEnumerable<T> dataSource, Action<TabStripItem, T> itemDataBound)
The data source.
itemDataBoundAction<TabStripItem, T>The action executed for every data bound item.
Returns:Returns the current TabStripBuilder instance.
Specifies whether each tab can be closed via a close button. When enabled, each tab includes a close icon that triggers tab removal on click. This applies to all tabs in the TabStrip. You can configure the closable behavior for individual tabs by setting the closable option in the specific tab item options.
Specifies whether each tab can be closed via a close button. When enabled, each tab includes a close icon that triggers tab removal on click. This applies to all tabs in the TabStrip. You can configure the closable behavior for individual tabs by setting the closable option in the specific tab item options.
public TabStripBuilder Closable(bool value)
The value for Closable
Returns:Returns the current TabStripBuilder instance.
Specifies whether the TabStrip should be able to collapse completely when clicking an expanded tab.
Specifies whether the TabStrip should be able to collapse completely when clicking an expanded tab.
public TabStripBuilder Collapsible(bool value)
The value for Collapsible
Returns:Returns the current TabStripBuilder instance.
Configures the client-side events.
public TabStripBuilder Events(Action<TabStripEventBuilder> configurator)
The client events action.
Returns:Returns the current TabStripBuilder instance.
Select item depending on the current URL.
public TabStripBuilder HighlightPath(bool value)
If true the item will be highlighted.
Returns:Returns the current TabStripBuilder instance.
Specifies the position of the icon in the TabStrip items using the text content as a reference.
public TabStripBuilder IconPosition(IconPosition value)
The value for IconPosition
Returns:Returns the current TabStripBuilder instance.
Callback for each item of the TabStrip.
public TabStripBuilder ItemAction(Action<TabStripItem> action)
Action, which will be executed for each item.
Returns:Returns the current TabStripBuilder instance.
Defines the items in the TabStrip.
public TabStripBuilder Items(Action<TabStripItemFactory> addAction)
The add action.
Returns:Returns the current TabStripBuilder instance.
Specifies whether the TabStrip should be keyboard navigatable.
public TabStripBuilder Navigatable(bool value)
The value for Navigatable
Returns:Returns the current TabStripBuilder instance.
If enabled, the TabStrip will display buttons that will scroll the tabs horizontally, when they cannot fit the TabStrip width. By default scrolling is enabled.Unless disabled, scrollable must be set to a JavaScript object, which represents the scrolling configuration.See Scrollable Tabs for more information.
public TabStripBuilder Scrollable(Action<TabStripScrollableSettingsBuilder> configurator)
The TabStripScrollableSettingsBuilder for the scrollable setting.
Returns:Returns the current instance of TabStripBuilder .
If enabled, the TabStrip will display buttons that will scroll the tabs horizontally, when they cannot fit the TabStrip width. By default scrolling is enabled.Unless disabled, scrollable must be set to a JavaScript object, which represents the scrolling configuration.See Scrollable Tabs for more information.
public TabStripBuilder Scrollable(bool enabled)
Enables or disables the scrollable option.
Returns:Returns the current instance of TabStripScrollableSettingsBuilder .
Selects the item at the specified index of the TabStrip.
public TabStripBuilder SelectedIndex(int index)
The index.
Returns:Returns the current TabStripBuilder instance.
Specifies the size of the component. Default is Medium.
public TabStripBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current TabStripBuilder instance.
If enabled, users will be able to sort the tabs by dragging them to the desired position.
If enabled, users will be able to sort the tabs by dragging them to the desired position.
public TabStripBuilder Sortable(bool value)
The value for Sortable
Returns:Returns the current TabStripBuilder instance.
Specifies the alignment of the component tabs. Default is Start. Not applicable with Scrollable TabStrip.
public TabStripBuilder TabAlignment(TabStripTabAlignment value)
The value for TabAlignment
Returns:Returns the current TabStripBuilder instance.
The criterion operator type.
public TabStripBuilder TabPosition(TabStripTabPosition value)
The value for TabPosition
Returns:Returns the current TabStripBuilder instance.
Specifies the selected tab. Should be corresponding to the dataTextField configuration and used when bound to a DataSource component.
public TabStripBuilder Value(string value)
The value for Value
Returns:Returns the current TabStripBuilder instance.