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

Kendo UI BottomNavigationItem TagHelper BottomNavigationItemTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

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

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

@{
    var contextData = new { key = "value" };
}

<kendo-bottomnavigation name="bottomnavigation">
    <bottomnavigation-items>
        <bottomnavigation-item text="Item1" context-data="contextData" />
    </bottomnavigation-items>
</kendo-bottomnavigation>

Constructors

Initializes a new instance of the BottomNavigationItemTagHelper class.

C#
public BottomNavigationItemTagHelper()

Properties

Contextual data to be used for events within the component.

C#
public object ContextData { get; set; }

Defines the class names of the item's element.

C#
public string CssClass { get; set; }

Toggles the enabled state of the item.

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

If false, the text will be able to render HTML.

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

Specifies the HTML attributes of the BottomNavigation item.

C#
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.

C#
[HtmlAttributeName("icon")]
public string Icon { get; set; }

Defines the class name added to the icon element.

C#
public string IconClass { get; set; }

Toggles the selected state of the item.

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

Sets a custom template for the item (overrides the template option).

C#
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.

C#
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.

C#
public string TemplateId { get; set; }

Represents a collection of templates defined for the component.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

Sets a custom template for the item (overrides the template option). This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent TemplateView { get; set; }

The text of the item. It is optional - if not set, no text will be rendered.

C#
public string Text { get; set; }

The URL (href) to which the item will navigate to.

C#
public string Url { 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)

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

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>