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

Defines the fluent API for configuring the Kendo UI BottomNavigation

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class BottomNavigationBuilder : WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>BottomNavigationBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.ToComponent()WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.Expression(string)WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.Name(string)WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.Deferred(bool)WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.HtmlAttributes(object)WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.Render()WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.ToHtmlString()WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.ToClientTemplate()WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.AsModule(bool)WidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.ComponentWidgetBuilderBase<BottomNavigation, BottomNavigationBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the BottomNavigationBuilder class.

C#
public BottomNavigationBuilder(BottomNavigation component)
Parameters:componentBottomNavigation

Methods

Toggles the border of the widget.

C#
public BottomNavigationBuilder Border(bool value)
Parameters:valuebool

The value for Border

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Configures the client-side events.

C#
public BottomNavigationBuilder Events(Action<BottomNavigationEventBuilder> configurator)
Parameters:configuratorAction<BottomNavigationEventBuilder>

The client events action.

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Example:
C#
@(Html.Kendo().BottomNavigation()
.Name("BottomNavigation")
.Events(events =&gt; events
.Select("onSelect")
)
)

Defines the fill of the component.

C#
public BottomNavigationBuilder Fill(BottomNavigationFill value)
Parameters:valueBottomNavigationFill

The value for Fill

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Example:
C#
@(Html.Kendo().BottomNavigation()
.Name("bottomNavigation")
.Fill(BottomNavigationFill.Solid)
)

Defines the iteFLow of the component

C#
public BottomNavigationBuilder ItemFlow(BottomNavigationItemFlow value)
Parameters:valueBottomNavigationItemFlow

The value for ItemFlow

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Specifies the items of the BottomNavigation component.

C#
public BottomNavigationBuilder Items(Action<BottomNavigationItemFactory> configurator)
Parameters:configuratorAction<BottomNavigationItemFactory>

The BottomNavigationItemFactory for the items setting.

Returns:

BottomNavigationBuilder

Returns the current instance of BottomNavigationBuilder .

Defines the position of the component

C#
public BottomNavigationBuilder PositionMode(BottomNavigationPositionMode value)
Parameters:valueBottomNavigationPositionMode

The value for PositionMode

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Toggles the shadow of the widget.

C#
public BottomNavigationBuilder Shadow()
Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Toggles the shadow of the widget.

C#
public BottomNavigationBuilder Shadow(bool value)
Parameters:valuebool

The value for Shadow

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Sets a custom template for the items.

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

The value for Template

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Sets a custom template for the items.

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

A Template component that configures the template.

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Sets a custom template for the items.

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

The handler that returs the template for Template

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Sets a custom template for the items.

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

The ID of the template element for Template

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Sets a custom template for the items.

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

The view that contains the template for Template

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.

Defines the theme color of the component

C#
public BottomNavigationBuilder ThemeColor(BottomNavigationThemeColor value)
Parameters:valueBottomNavigationThemeColor

The value for ThemeColor

Returns:

BottomNavigationBuilder

Returns the current BottomNavigationBuilder instance.