TabStripTagHelper
Kendo UI TabStrip TagHelper TabStripTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-tabstrip")]
[RestrictChildren("scrollable", new string[] { "popup-animation", "items", "ul", "div" })]
[OutputElementHint("div")]
public class TabStripTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseTabStripTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-tabstrip name="tabstrip">
<items>
<tabstrip-item text="One">
<content>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</content>
</tabstrip-item>
<tabstrip-item text="Two">
<content>
<p>Mauris pulvinar molestie accumsan.</p>
</content>
</tabstrip-item>
</items>
</kendo-tabstrip>
Child Tags
Constructors
Initializes a new instance of the TabStripTagHelper class.
public TabStripTagHelper(IKendoHtmlGenerator generator, IIconBuilder iconBuilder)
Properties
Binds a list of items to the TabStrip.
public IEnumerable<TabStripItemBase> BindTo { get; set; }
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; }
Sets an array with the configurations from which the tabs content to be loaded from.
[HtmlAttributeNotBound]
public IList<Dictionary<string, object>> ContentUrls { get; set; }
Specifies the position of the icon in the TabStrip items using the text content as a reference.
public IconPosition? IconPosition { get; set; }
Specifies whether the TabStrip should be keyboard navigatable.
public bool? Navigatable { get; set; }
The name of the JavaScript function that will handle the activate event. Triggered after a tab is being made visible and its animation complete. Before Q2 2014 this event was invoked after tab show, but before the end of the animation. This event is triggered only for tabs with associated content.
public string OnActivate { get; set; }
The name of the JavaScript function that will handle the contentLoad event. Triggered when content is fetched from an AJAX request.
public string OnContentLoad { get; set; }
The name of the JavaScript function that will handle the error event. Triggered when an AJAX request results in an error.
public string OnError { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the TabStrip is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the select event. Triggered before a tab is selected.
public string OnSelect { get; set; }
The name of the JavaScript function that will handle the show event. Triggered just after a tab is being made visible, but before the end of the animation. Before Q2 2014 this event was called activate.
public string OnShow { 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; }
Specifies the position of the widget tabs. Valid values are "top" (default), "left", "right" and "bottom". A fade animation is highly recommended with any of the non-default tab position settings.
public string TabPosition { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: