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

BottomNavigationItemBuilder

Methods

Data(System.Object)

The contextual data of the item.

Parameters

data - System.Object

The data object

Example


                @(Html.Kendo().BottomNavigation()
                    .Name("bottomNavigation")
                    .Items(items => {
                        items.Add().Url("/").Data(new { view = "home" }).Icon("home");
                    })
                )

Attributes(System.Object)

Defines the attributes of the item.

Parameters

attributes - System.Object

The object to be mapped to the attribute collection

Example


                @(Html.Kendo().BottomNavigation()
                    .Name("bottomNavigation")
                    .Items(items => {
                        items.Add().Url("/").Attributes(new { title = "Index"}).Data(new { view = "home" }).Icon("home");
                    })
                )

Url(System.String)

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

Parameters

value - System.String

The value for Url

Icon(System.String)

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.

Parameters

value - System.String

The value for Icon

Text(System.String)

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

Parameters

value - System.String

The value for Text

Encoded(System.Boolean)

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

Parameters

value - System.Boolean

The value for Encoded

IconClass(System.String)

Defines the class name added to the icon element.

Parameters

value - System.String

The value for IconClass

CssClass(System.String)

Defines the class names of the item's element.

Parameters

value - System.String

The value for CssClass

Enabled(System.Boolean)

Toggles the enabled state of the item.

Parameters

value - System.Boolean

The value for Enabled

Selected(System.Boolean)

Toggles the selected state of the item.

Parameters

value - System.Boolean

The value for Selected

Selected()

Toggles the selected state of the item.

Template(System.String)

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

Parameters

value - System.String

The value for Template

TemplateId(System.String)

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

Parameters

templateId - System.String

The ID of the template element for Template

TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

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

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The view that contains the template for Template

TemplateHandler(System.String)

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

Parameters

templateHandler - System.String

The handler that returs the template for Template

Template(Kendo.Mvc.UI.TemplateBuilder)

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

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the template.

In this article
Not finding the help you need?