TabStrip
Kendo UI TabStrip component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class TabStrip : WidgetBase, IHtmlAttributesContainer, INavigationItemComponent<TabStripItem>, INavigationItemContainer<TabStripItem>
Inheritance: objectWidgetBaseTabStrip
Implements:
Inherited Members
Constructors
Initializes a new instance of the TabStrip class.
public TabStrip(ViewContext viewContext, INavigationItemAuthorization authorization)
Properties
Animation member.
public PopupAnimation Animation { get; }
Authorization member.
public INavigationItemAuthorization Authorization { get; }
Implements:
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 bool? Closable { get; set; }
Specifies whether the TabStrip should be able to collapse completely when clicking an expanded tab.
public bool? Collapsible { get; set; }
HighlightPath member.
public bool? HighlightPath { get; set; }
Specifies the position of the icon in the TabStrip items using the text content as a reference.
public IconPosition? IconPosition { get; set; }
ItemAction member.
public Action<TabStripItem> ItemAction { get; set; }
Implements:
Items member.
public IList<TabStripItem> Items { get; }
Implements:
Specifies whether the TabStrip should be keyboard navigatable.
public bool? Navigatable { get; set; }
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 TabStripScrollableSettings Scrollable { get; }
SecurityTrimming member.
public SecurityTrimming SecurityTrimming { get; set; }
Implements:
SelectedIndex member.
public int? SelectedIndex { get; set; }
Specifies the size of the component. Default is Medium.
public ComponentSize? Size { get; set; }
If enabled, users will be able to sort the tabs by dragging them to the desired position.
public bool? Sortable { get; set; }
Specifies the alignment of the component tabs. Default is Start. Not applicable with Scrollable TabStrip.
public TabStripTabAlignment? TabAlignment { get; set; }
The criterion operator type.
public TabStripTabPosition? TabPosition { get; set; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: