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

Kendo UI PanelBarItem TagHelper PanelBarItemTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@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 Tagscontentitems

Constructors

Initializes a new instance of the PanelBarItemTagHelper class.

C#
public PanelBarItemTagHelper(IIconBuilder iconBuilder)
Parameters:iconBuilderIIconBuilder

Properties

Specifies the content that will be loaded

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

Specifies the HTML attributes of the content container

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

Specifies the url from which the item content will be loaded

C#
public string ContentUrl { get; set; }

Specifies whether the item is initially enabled

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

Specifies whether the item's text is encoded

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

Specifies if an item will be expanded

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

Specifies the font icon displayed by the item. https://docs.telerik.com/kendo-ui/styles-and-layout/icons-web

C#
public string Icon { get; set; }

Specifies custom class name for the icon displayed by the item

C#
public string IconClass { get; set; }

Specifies the HTML attributes of the image

C#
public object ImageHtmlAttributes { get; set; }

Specifies the URL of the image displayed by the item

C#
public string ImageUrl { get; set; }

Specifies the items of the PanelBarItem.

C#
[HtmlAttributeNotBound]
public IEnumerable<PanelBarItemBase> Items { get; set; }

Specifies the HTML attributes of the link

C#
public object LinkHtmlAttributes { get; set; }

Specifies whether the item is initially selected

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

Specifies the text displayed by the item

C#
public string Text { get; set; }

Specifies the URL that the item links to

C#
public string Url { get; set; }

Specifies whether the item will be rendered

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

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

EnhanceItem method.

C#
public TagBuilder EnhanceItem()
Returns:

TagBuilder

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

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)