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

Defines the fluent API for configuring BottomNavigationItem

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class BottomNavigationItemBuilder

Inheritance: objectBottomNavigationItemBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

BottomNavigationItemBuilder method.

C#
public BottomNavigationItemBuilder(BottomNavigationItem container)
Parameters:containerBottomNavigationItem

Properties

Gets the settings being configured.

C#
protected BottomNavigationItem Container { get; }

Methods

Defines the attributes of the item.

C#
public BottomNavigationItemBuilder Attributes(object attributes)
Parameters:attributesobject

The object to be mapped to the attribute collection

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

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

Defines the class names of the item's element.

C#
public BottomNavigationItemBuilder CssClass(string value)
Parameters:valuestring

The value for CssClass

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

The contextual data of the item.

C#
public BottomNavigationItemBuilder Data(object data)
Parameters:dataobject

The data object

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

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

Toggles the enabled state of the item.

C#
public BottomNavigationItemBuilder Enabled(bool value)
Parameters:valuebool

The value for Enabled

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

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

C#
public BottomNavigationItemBuilder Encoded(bool value)
Parameters:valuebool

The value for Encoded

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

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#
public BottomNavigationItemBuilder Icon(Action<BottomNavigationItemIconSettingsBuilder> configurator)
Parameters:configuratorAction<BottomNavigationItemIconSettingsBuilder>

The BottomNavigationItemIconSettingsBuilder for the icon setting.

Returns:

BottomNavigationItemBuilder

Returns the current instance of BottomNavigationItemBuilder .

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#
public BottomNavigationItemBuilder Icon(string icon)
Parameters:iconstring

The icon.

Returns:

BottomNavigationItemBuilder

Returns the current instance of BottomNavigationItemBuilder .

Defines the class name added to the icon element.

C#
public BottomNavigationItemBuilder IconClass(string value)
Parameters:valuestring

The value for IconClass

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

Toggles the selected state of the item.

C#
public BottomNavigationItemBuilder Selected()
Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

Toggles the selected state of the item.

C#
public BottomNavigationItemBuilder Selected(bool value)
Parameters:valuebool

The value for Selected

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

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

C#
public BottomNavigationItemBuilder Template(string value)
Parameters:valuestring

The value for Template

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

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

C#
public BottomNavigationItemBuilder Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

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

C#
public BottomNavigationItemBuilder TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for Template

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

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

C#
public BottomNavigationItemBuilder TemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for Template

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

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

C#
public BottomNavigationItemBuilder TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for Template

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

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

C#
public BottomNavigationItemBuilder Text(string value)
Parameters:valuestring

The value for Text

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.

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

C#
public BottomNavigationItemBuilder Url(string value)
Parameters:valuestring

The value for Url

Returns:

BottomNavigationItemBuilder

Returns the current BottomNavigationItemBuilder instance.