Kendo UI BottomNavigation TagHelper BottomNavigationTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-bottomnavigation")]
[RestrictChildren("bottomnavigation-items", new string[] { "bottom-navigation-template" })]
public class BottomNavigationTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseBottomNavigationTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-bottomnavigation name="bottomNavigation" position-mode="BottomNavigationPositionMode.Absolute" style="bottom:0;">
<bottomnavigation-items>
<bottomnavigation-item text="Inbox" icon="envelop" selected="true"></bottomnavigation-item>
<bottomnavigation-item text="Calendar" icon="calendar-date"></bottomnavigation-item>
<bottomnavigation-item text="Profile" icon="user"></bottomnavigation-item>
</bottomnavigation-items>
</kendo-bottomnavigation>
Child Tags
Constructors
Initializes a new instance of the BottomNavigationTagHelper class.
public BottomNavigationTagHelper(IKendoHtmlGenerator generator)
Properties
Defines the fill of the component
public BottomNavigationFill? Fill { get; set; }
Defines the iteFLow of the component
public BottomNavigationItemFlow? ItemFlow { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the BottomNavigation is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the select event. Fires when the user selects an item in BottomNavigation.
public string OnSelect { get; set; }
Defines the position of the component
public BottomNavigationPositionMode? PositionMode { get; set; }
Sets a custom template for the items. 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 items. 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 items. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
Defines the theme color of the component
public BottomNavigationThemeColor? ThemeColor { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: