New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI TabStripItem TagHelper TabStripItemTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("tabstrip-item", ParentTag = "items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("content", new string[] { "tabstrip-item-actions", "icon" })]
[OutputElementHint("li")]
public class TabStripItemTagHelper : AnchorTagHelper, ITagHelper, ITagHelperComponent, INavigationItem

Inheritance: objectTagHelperAnchorTagHelperTabStripItemTagHelper

Implements: INavigationItemITagHelperITagHelperComponent

Inherited Members AnchorTagHelper.Process(TagHelperContext, TagHelperOutput)AnchorTagHelper.OrderAnchorTagHelper.GeneratorAnchorTagHelper.ActionAnchorTagHelper.ControllerAnchorTagHelper.AreaAnchorTagHelper.PageAnchorTagHelper.PageHandlerAnchorTagHelper.ProtocolAnchorTagHelper.HostAnchorTagHelper.FragmentAnchorTagHelper.RouteAnchorTagHelper.RouteValuesAnchorTagHelper.ViewContextobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-tabstrip name="tabstrip">
    <items>
        <tabstrip-item text="Tab 1">
            <tabstrip-item-actions></tabstrip-item-actions>
        </tabstrip-item>
    </items>
</kendo-tabstrip>

Constructors

Initializes a new instance of the TabStripItemTagHelper class.

C#
public TabStripItemTagHelper(IHtmlGenerator generator, IIconBuilder iconBuilder)
Parameters:generatorIHtmlGeneratoriconBuilderIIconBuilder

Properties

A collection of child items for the TabStripItem.

C#
[HtmlAttributeNotBound]
public IEnumerable<TabStripItemBase> Children { get; set; }

Specifies the closable state of the item.

C#
public bool? Closable { get; set; }

Content member.

C#
[HtmlAttributeNotBound]
public string Content { get; set; }

Implements: INavigationItem.Content

Specifies the HTML attributes of the content element.

C#
[HtmlAttributeNotBound]
public object ContentHtmlAttributes { get; set; }

Implements: INavigationItem.ContentHtmlAttributes

The URL to fetch the content

C#
public string ContentUrl { get; set; }

The name of the JavaScript function which returns additional parameters which will be sent to the remote service.

C#
public string Data { get; set; }

Specifies whether the item is initially enabled

C#
public bool? Enabled { get; set; }

Implements: INavigationItem.Enabled

Specifies whether the item's text is encoded

C#
public bool? Encoded { get; set; }

Implements: INavigationItem.Encoded

Specifies the HTTP headers of the request.

C#
public IDictionary<string, string> Headers { get; set; }

Specifies the icon displayed by the item. To render a Kendo icon pass the name of the Kendo Icon. To render custom icons, eg. FontAwesome, pass the class names for the desired icon. List of Kendo Icons.

C#
public string Icon { get; set; }

Implements: INavigationItem.Icon

Sets the icon CSS class name.

C#
public string IconClass { get; set; }

Implements: INavigationItem.IconClass

Sets the position of the icon relative to the tab text.

C#
public IconPosition? IconPosition { get; set; }

Specifies the HTML attributes of the image

C#
public object ImageHtmlAttributes { get; set; }

Implements: INavigationItem.ImageHtmlAttributes

Specifies the URL of the image displayed by the item

C#
public string ImageUrl { get; set; }

Implements: INavigationItem.ImageUrl

Specifies the HTML attributes of the link

C#
public object LinkHtmlAttributes { get; set; }

Implements: INavigationItem.LinkHtmlAttributes

Specifies whether the item is initially selected

C#
public bool? Selected { get; set; }

Implements: INavigationItem.Selected

Specifies whether the item is a separator

C#
[HtmlAttributeNotBound]
public bool? Separator { get; set; }

Implements: INavigationItem.Separator

Sets the Sprite CSS classes.

C#
public string[] SpriteCssClasses { get; set; }

Specifies the text displayed by the item

C#
public string Text { get; set; }

Implements: INavigationItem.Text

The type of request to make ("POST", "GET", "PUT" or "DELETE"). The default request is "GET".Refer to the jQuery.ajax documentation for further information.

C#
public string Type { get; set; }

Specifies the URL that the item links to

C#
[HtmlAttributeNotBound]
public string Url { get; set; }

Implements: INavigationItem.Url

Specifies whether the item will be rendered

C#
public bool? Visible { get; set; }

Implements: INavigationItem.Visible

Methods

Adds the TabStripItemTagHelper within the given context.

C#
protected virtual void AddSelfToContext(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context

C#
public override void Init(TagHelperContext context)
Parameters:contextTagHelperContext

Overrides: TagHelper.Init(TagHelperContext)

ProcessAsync method.

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)