TabStripBuilder
Defines the fluent interface for configuring the TabStrip component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class TabStripBuilder : WidgetBuilderBase<TabStrip, TabStripBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<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:Configures the animation effects of the TabStrip.
public TabStripBuilder Animation(bool enable)
Whether the component animation is enabled.
Returns:Binds the TabStrip to a sitemap
public TabStripBuilder BindTo(string viewDataKey, Action<TabStripItem, SiteMapNode> siteMapAction)
The view data key.
siteMapActionAction<TabStripItem, SiteMapNode>The action to configure the item.
Returns:Binds the TabStrip to a sitemap.
public TabStripBuilder BindTo(string viewDataKey)
The view data key.
Returns: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: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. In case you want to have specific tabs with a different closable behavior, you can set 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. In case you want to have specific tabs with a different closable behavior, you can set the closable option in the specific tab item options.
Configures the collapsible property of the TabStrip.
public TabStripBuilder Collapsible(bool enable)
Whether the component animation is collapsible.
Returns:Configures the client-side events of the TabStrip.
public TabStripBuilder Events(Action<TabStripEventBuilder> clientEventsAction)
The client events action.
Returns:Select item depending on the current URL.
public TabStripBuilder HighlightPath(bool value)
If true the item will be highlighted.
Returns:Specifies the position of the icon in the Menu items using the text content as a reference.
public TabStripBuilder IconPosition(IconPosition value)
The value for IconPosition
Returns:Callback for each item of the TabStrip.
public TabStripBuilder ItemAction(Action<TabStripItem> action)
Action, which will be executed for each item.
Returns:Defines the items in the TabStrip.
public TabStripBuilder Items(Action<TabStripItemFactory> addAction)
The add action.
Returns:Enable/disable TabStrip keyboard navigation.
public TabStripBuilder Navigatable(bool value)
If true the TabStrip will have keyboard navigation.
Returns:Sets the tab scrolling settings.
public TabStripBuilder Scrollable(Action<TabStripScrollableSettingsBuilder> scrollableSettingsAction)
The action which accepts scrollable settings.
Returns:Disables tab scrolling.
Enable/disable security trimming functionality of the TabStrip.
public TabStripBuilder SecurityTrimming(bool value)
If true security trimming is enabled.
Returns:Selects the item at the specified index.
Specifies the size of the component tabs. Default is Medium.
public TabStripBuilder Size(ComponentSize? value)
The value for Size
Returns: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.
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:Sets the tabs' position. The default value is Top. Using fade animation is highly recommended with any of the non-default tab position settings.
public TabStripBuilder TabPosition(TabStripTabPosition position)
The position.
Returns:Sets the selected tab of the widget
public TabStripBuilder Value(string value)
String value corresponding to DataTextField property
Returns: