AppBarItemTagHelper
Kendo UI AppBarItem TagHelper AppBarItemTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("appbar-item", ParentTag = "items", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("header-item", ParentTag = "header-items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("template", new string[] { })]
[SuppressTagRendering]
public class AppBarItemTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseAppBarItemTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-appbar name="appbar">
<items>
<appbar-item class-name="custom-class" template="<span>AppBar Custom Content</span>"></appbar-item>
</items>
</kendo-appbar>
Child Tags
Constructors
Initializes a new instance of the AppBarItemTagHelper class.
public AppBarItemTagHelper()
Properties
The template which renders as content for the appbar item. Valid only for the contentItem type
public string Template { get; set; }
The template which renders as content for the appbar item. Valid only for the contentItem type This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
The template which renders as content for the appbar item. Valid only for the contentItem type This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Represents a collection of templates defined for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The template which renders as content for the appbar item. Valid only for the contentItem type This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
Defines the type of positioning
public AppBarItemType? Type { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.