Kendo UI TreeViewItem TagHelper TreeViewItemTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("treeview-item", ParentTag = "items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("items", new string[] { "icon" })]
[SuppressTagRendering]
public class TreeViewItemTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseTreeViewItemTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-treeview name="treeview">
<items>
<treeview-item text="Checked Item" checked="true"></treeview-item>
</items>
</kendo-treeview>
Child Tags
Constructors
Initializes a new instance of the TreeViewItemTagHelper class.
public TreeViewItemTagHelper()
Properties
Specifies whether the item is initially checked. True by default.
public bool? Checked { get; set; }
Specifies the attributes added to the content element of the item.
public IDictionary<string, object> ContentHtmlAttributes { get; set; }
Specifies whether the item is initially enabled. True by default.
public bool? Enabled { get; set; }
Specifies whether the item is initially expanded
public bool? Expanded { get; set; }
Specifies the attributes added to the item
public IDictionary<string, object> HtmlAttributes { get; set; }
Specifies the attributes added to the item's image.
public IDictionary<string, object> ImageHtmlAttributes { get; set; }
Specifies the URL of the image displayed by the item
public string ImageUrl { get; set; }
Specifies the attributes added to the item's element
public IDictionary<string, object> LinkHtmlAttributes { get; set; }
Specifies whether the item is initially selected
public bool? Selected { get; set; }
Specifies the class name for the sprite image displayed by the item
public string SpriteCssClass { 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.