Kendo UI PanelBarItem TagHelper PanelBarItemTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("panelbar-item", ParentTag = "items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("items", new string[] { "content" })]
[SuppressTagRendering]
[OutputElementHint("li")]
public class PanelBarItemTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBasePanelBarItemTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-panelbar name="panelbar">
<items>
<panelbar-item text="Item with custom content">
<content>
Custom content goes here.
</content>
</panelbar-item>
</items>
</kendo-panelbar>
Child Tags
Constructors
Initializes a new instance of the PanelBarItemTagHelper class.
Properties
Specifies the content that will be loaded
[HtmlAttributeNotBound]
public string Content { get; set; }
Specifies the HTML attributes of the content container
[HtmlAttributeNotBound]
public object ContentHtmlAttributes { get; set; }
Specifies the url from which the item content will be loaded
public string ContentUrl { get; set; }
Specifies the font icon displayed by the item. https://docs.telerik.com/kendo-ui/styles-and-layout/icons-web
public string Icon { get; set; }
Specifies custom class name for the icon displayed by the item
public string IconClass { get; set; }
Specifies the HTML attributes of the image
public object ImageHtmlAttributes { get; set; }
Specifies the URL of the image displayed by the item
public string ImageUrl { get; set; }
Specifies the items of the PanelBarItem.
[HtmlAttributeNotBound]
public IEnumerable<PanelBarItemBase> Items { get; set; }
Specifies the HTML attributes of the link
public object LinkHtmlAttributes { get; set; }
Specifies whether the item is initially selected
public bool? Selected { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
EnhanceItem method.
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides: