BreadcrumbItemBuilder

Methods

Encoded(System.Boolean)

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

Parameters

value - System.Boolean

The value for Encoded

RETURNS

Returns the current BreadcrumbItemBuilder instance.

Example

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

Href(System.String)

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

Parameters

value - System.String

The value for Href

RETURNS

Returns the current BreadcrumbItemBuilder instance.

Text(System.String)

Defines the text of the item.

Parameters

value - System.String

The value for Text

RETURNS

Returns the current BreadcrumbItemBuilder instance.

Example

Razor
 
            @(Html.Kendo().Breadcrumb()
                   .Name("Breadcrumb")
                   .Items(t =>
                   {
                       t.Add().Text("Month");
                   })
            )
             

Icon(System.String)

Defines the icon to be rendered.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.

Parameters

icon - System.String

The icon.

RETURNS

Returns the current instance of BreadcrumbItemBuilder .

Icon(System.Action)

Defines the icon to be rendered.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.

Parameters

configurator - System.Action<BreadcrumbItemIconSettingsBuilder>

The configurator for the icon setting.

RETURNS

Returns the current instance of BreadcrumbItemBuilder .

ItemClass(System.String)

Defines the item classes (the li element).

Parameters

value - System.String

The value for ItemClass

RETURNS

Returns the current BreadcrumbItemBuilder instance.

LinkClass(System.String)

Defines the link classes (the a element).

Parameters

value - System.String

The value for LinkClass

RETURNS

Returns the current BreadcrumbItemBuilder instance.

IconClass(System.String)

Defines the icon classes (the span element).

Parameters

value - System.String

The value for IconClass

RETURNS

Returns the current BreadcrumbItemBuilder instance.

Example

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

ShowIcon(System.Boolean)

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

Parameters

value - System.Boolean

The value for ShowIcon

RETURNS

Returns the current BreadcrumbItemBuilder instance.

ShowText(System.Boolean)

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

Parameters

value - System.Boolean

The value for ShowText

RETURNS

Returns the current BreadcrumbItemBuilder instance.

Type(Kendo.Mvc.UI.BreadcrumbItemType)

The item type.

Parameters

value - BreadcrumbItemType

The value for Type

RETURNS

Returns the current BreadcrumbItemBuilder instance.