DrawerItemTagHelper
Kendo UI DrawerItem TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("drawer-item", ParentTag = "drawer-items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("drawer-items", new string[] { "drawer-item-template", "mini-template", "icon" })]
[SuppressTagRendering]
public class DrawerItemTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseDrawerItemTagHelper
Implements:
Inherited Members
Child Tags
Constructors
Initializes a new instance of the DrawerItemTagHelper class.
public DrawerItemTagHelper()
Properties
Defines the class names of the generated item element.
public string CssClass { get; set; }
Toggles the initial expanded state of the item. When set to true, the item starts expanded and its child items are visible. Clicking a parent item toggles expand and collapse regardless of this setting.
public bool? Expanded { get; set; }
Defines the name for an existing icon in a Kendo UI theme.See web font icons help article for more details on Kendo UI icons.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
[HtmlAttributeName("icon")]
public string Icon { get; set; }
Sets a custom template function for the item in mini mode. The implemented items surface supports function values only. The function must return the item markup used while the Drawer is collapsed in mini mode. If mini.template is configured, it takes precedence over items.miniTemplate. This option expects the name of a JavaScript function that will be called to return the template.
public string MiniTemplateHandler { get; set; }
Defines a separator item. When set to true, the Drawer renders a separator instead of a clickable item.
public bool? Separator { get; set; }
Sets a custom template function for the item. The implemented items surface supports function values only. The function must return the item markup. If the top-level template option is configured, it takes precedence over items and per-item templates are not used. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
Configures the templates for the DrawerItem.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
Methods
Adds the current instance to the parent TagHelper, if applicable.
protected override void AddSelfToParent(TagHelperContext context)
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
Serializes the defined templates.