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

Defines the fluent API for configuring the BreadcrumbItem settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class BreadcrumbItemBuilder

Inheritance: objectBreadcrumbItemBuilder

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

Constructors

Initialize the BreadcrumbItemBuilder

C#
public BreadcrumbItemBuilder(BreadcrumbItem settings)
Parameters:settingsBreadcrumbItem

The BreadcrumbItem

Methods

Defines whether to encode the item's text. To render entities or HTML, set it to false.

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

The value that configures the encoded.

Returns:

BreadcrumbItemBuilder

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("Breadcrumb")
.Items(t =>
{
t.Add().Text("Month").Encoded(true);
})
)

Defines the navigation link's url of the item (rendered if navigation is true).

C#
public BreadcrumbItemBuilder Href(string value)
Parameters:valuestring

The value that configures the href.

Returns:

BreadcrumbItemBuilder

Defines the icon to be rendered.

C#
public BreadcrumbItemBuilder Icon(string value)
Parameters:valuestring

The value that configures the icon.

Returns:

BreadcrumbItemBuilder

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("Breadcrumb")
.Items(t =>
{
t.Add().Text("Month").Icon("align-left");
})
)

Defines the icon classes (the span element).

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

The value that configures the iconclass.

Returns:

BreadcrumbItemBuilder

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("Breadcrumb")
.Items(t =>
{
t.Add().Text("Month").Icon("align-left").IconClass("fa fa-male");
})
)

Defines the item classes (the li element).

C#
public BreadcrumbItemBuilder ItemClass(string value)
Parameters:valuestring

The value that configures the itemclass.

Returns:

BreadcrumbItemBuilder

Defines the link classes (the a element).

C#
public BreadcrumbItemBuilder LinkClass(string value)
Parameters:valuestring

The value that configures the linkclass.

Returns:

BreadcrumbItemBuilder

Defines whether to show the icon. Default value is true for rootItem and false for item.

C#
public BreadcrumbItemBuilder ShowIcon(bool value)
Parameters:valuebool

The value that configures the showicon.

Returns:

BreadcrumbItemBuilder

Defines whether to show the text. Default value is false for rootItem and true for item.

C#
public BreadcrumbItemBuilder ShowText(bool value)
Parameters:valuebool

The value that configures the showtext.

Returns:

BreadcrumbItemBuilder

Defines the text of the item.

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

The value that configures the text.

Returns:

BreadcrumbItemBuilder

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("Breadcrumb")
.Items(t =>
{
t.Add().Text("Month");
})
)

The item type.

C#
public BreadcrumbItemBuilder Type(BreadcrumbItemType value)
Parameters:valueBreadcrumbItemType

The value that configures the type.

Returns:

BreadcrumbItemBuilder