Kendo UI TabStripItem TagHelper TabStripItemTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[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:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-tabstrip name="tabstrip">
<items>
<tabstrip-item text="Tab 1">
<tabstrip-item-actions></tabstrip-item-actions>
</tabstrip-item>
</items>
</kendo-tabstrip>
Child Tags
Constructors
Initializes a new instance of the TabStripItemTagHelper class.
public TabStripItemTagHelper(IHtmlGenerator generator, IIconBuilder iconBuilder)
Properties
A collection of child items for the TabStripItem.
[HtmlAttributeNotBound]
public IEnumerable<TabStripItemBase> Children { get; set; }
Content member.
[HtmlAttributeNotBound]
public string Content { get; set; }
Implements:
Specifies the HTML attributes of the content element.
[HtmlAttributeNotBound]
public object ContentHtmlAttributes { get; set; }
Implements:
The URL to fetch the content
public string ContentUrl { get; set; }
The name of the JavaScript function which returns additional parameters which will be sent to the remote service.
public string Data { get; set; }
Specifies whether the item is initially enabled
public bool? Enabled { get; set; }
Implements:
Specifies whether the item's text is encoded
public bool? Encoded { get; set; }
Implements:
Specifies the HTTP headers of the request.
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.
public string Icon { get; set; }
Implements:
Sets the position of the icon relative to the tab text.
public IconPosition? IconPosition { get; set; }
Specifies the HTML attributes of the image
public object ImageHtmlAttributes { get; set; }
Implements:
Specifies the URL of the image displayed by the item
public string ImageUrl { get; set; }
Implements:
Specifies the HTML attributes of the link
public object LinkHtmlAttributes { get; set; }
Implements:
Specifies whether the item is initially selected
public bool? Selected { get; set; }
Implements:
Specifies whether the item is a separator
[HtmlAttributeNotBound]
public bool? Separator { get; set; }
Implements:
Sets the Sprite CSS classes.
public string[] SpriteCssClasses { get; set; }
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.
public string Type { get; set; }
Specifies the URL that the item links to
[HtmlAttributeNotBound]
public string Url { get; set; }
Implements:
Methods
Adds the TabStripItemTagHelper within the given context.
protected virtual void AddSelfToContext(TagHelperContext context)
The TagHelper context
ProcessAsync method.
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides: