Kendo UI BottomNavigationItem TagHelper BottomNavigationItemTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("bottomnavigation-item", ParentTag = "bottomnavigation-items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("item-template", new string[] { "icon" })]
[SuppressTagRendering]
public class BottomNavigationItemTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseBottomNavigationItemTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
@{
var contextData = new { key = "value" };
}
<kendo-bottomnavigation name="bottomnavigation">
<bottomnavigation-items>
<bottomnavigation-item text="Item1" context-data="contextData" />
</bottomnavigation-items>
</kendo-bottomnavigation>
Child Tags
Constructors
Initializes a new instance of the BottomNavigationItemTagHelper class.
public BottomNavigationItemTagHelper()
Properties
Contextual data to be used for events within the component.
public object ContextData { get; set; }
Defines the class names of the item's element.
public string CssClass { get; set; }
Specifies the HTML attributes of the BottomNavigation item.
public object HtmlAttributes { 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; }
Defines the class name added to the icon element.
public string IconClass { get; set; }
Sets a custom template for the item (overrides the template option).
public string Template { get; set; }
Sets a custom template for the item (overrides the template option). This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
Sets a custom template for the item (overrides the template option). 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:
Sets a custom template for the item (overrides the template option). This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
The text of the item. It is optional - if not set, no text will be rendered.
public string Text { 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.