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

Defines the fluent API for configuring the Kendo UI Breadcrumb

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class BreadcrumbBuilder : WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>BreadcrumbBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.ToComponent()WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.Expression(string)WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.Name(string)WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.Deferred(bool)WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.HtmlAttributes(object)WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.Render()WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.ToHtmlString()WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.ToClientTemplate()WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.AsModule(bool)WidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.ComponentWidgetBuilderBase<Breadcrumb, BreadcrumbBuilder>.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 BreadcrumbBuilder class.

C#
public BreadcrumbBuilder(Breadcrumb component)
Parameters:componentBreadcrumb

Methods

Indicates whether the Breadcrumb will enable/disable the binding to the location object of the browser on initialization.

C#
public BreadcrumbBuilder BindToLocation()
Returns:

BreadcrumbBuilder

Returns the current BreadcrumbBuilder instance.

Indicates whether the Breadcrumb will enable/disable the binding to the location object of the browser on initialization.

C#
public BreadcrumbBuilder BindToLocation(bool value)
Parameters:valuebool

The value for BindToLocation

Returns:

BreadcrumbBuilder

Returns the current BreadcrumbBuilder instance.

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("breadcrumb")
.BindToLocation(false)
)

Defines a name of an existing icon in the Kendo UI Web Font Icons. The icon will be applied as separator between the segments of the Breadcrumb path.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 BreadcrumbBuilder DelimiterIcon(Action<BreadcrumbDelimiterIconSettingsBuilder> configurator)
Parameters:configuratorAction<BreadcrumbDelimiterIconSettingsBuilder>

The BreadcrumbDelimiterIconSettingsBuilder for the delimitericon setting.

Returns:

BreadcrumbBuilder

Returns the current instance of BreadcrumbBuilder .

Defines a name of an existing icon in the Kendo UI Web Font Icons. The icon will be applied as separator between the segments of the Breadcrumb path.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 BreadcrumbBuilder DelimiterIcon(string delimiterIcon)
Parameters:delimiterIconstring

The delimitericon.

Returns:

BreadcrumbBuilder

Returns the current instance of BreadcrumbBuilder .

Indicates whether the editing functionality of the Breadcrumb will be enabled/disabled.If the option is enabled the path will be editable. Clicking in an empty area of the component will trigger editing mode. Editing mode shows an input showing the value of the component enabling the end user to type a new path.

C#
public BreadcrumbBuilder Editable()
Returns:

BreadcrumbBuilder

Returns the current BreadcrumbBuilder instance.

Indicates whether the editing functionality of the Breadcrumb will be enabled/disabled.If the option is enabled the path will be editable. Clicking in an empty area of the component will trigger editing mode. Editing mode shows an input showing the value of the component enabling the end user to type a new path.

C#
public BreadcrumbBuilder Editable(bool value)
Parameters:valuebool

The value for Editable

Returns:

BreadcrumbBuilder

Returns the current BreadcrumbBuilder instance.

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("breadcrumb")
.Editable(false)
)

Configures the client-side events.

C#
public BreadcrumbBuilder Events(Action<BreadcrumbEventBuilder> configurator)
Parameters:configuratorAction<BreadcrumbEventBuilder>

The client events action.

Returns:

BreadcrumbBuilder

Returns the current BreadcrumbBuilder instance.

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("Breadcrumb")
.Events(events =&gt; events
.Click("onClick")
)
)

Defines the space in pixels after the last item to stay empty.The gap value is taken into account when items overflow and continues to remain empty.

C#
public BreadcrumbBuilder Gap(double value)
Parameters:valuedouble

The value for Gap

Returns:

BreadcrumbBuilder

Returns the current BreadcrumbBuilder instance.

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("breadcrumb")
.Gap(150)
)

Array of items to be rendered in Breadcrumb.

C#
public BreadcrumbBuilder Items(Action<BreadcrumbItemFactory> configurator)
Parameters:configuratorAction<BreadcrumbItemFactory>

The BreadcrumbItemFactory for the items setting.

Returns:

BreadcrumbBuilder

Returns the current instance of BreadcrumbBuilder .

Defines the text of the root icon title that is displayed within the Breadcrumb.

C#
public BreadcrumbBuilder Messages(Action<BreadcrumbMessagesSettingsBuilder> configurator)
Parameters:configuratorAction<BreadcrumbMessagesSettingsBuilder>

The BreadcrumbMessagesSettingsBuilder for the messages setting.

Returns:

BreadcrumbBuilder

Returns the current instance of BreadcrumbBuilder .

Indicates whether the navigation functionality of the Breadcrumb will be enabled/disabled.When navigational is set to false, automatic navigation (changing url location) is disabled by default. In this state, the click event will be prevented and navigation will occur only if programmatic navigation is implemented.When navigational is set to true, the url (path) will be automatically added to the href attribute of the rendered links. In this state, the click event will trigger navigation.

C#
public BreadcrumbBuilder Navigational()
Returns:

BreadcrumbBuilder

Returns the current BreadcrumbBuilder instance.

Indicates whether the navigation functionality of the Breadcrumb will be enabled/disabled.When navigational is set to false, automatic navigation (changing url location) is disabled by default. In this state, the click event will be prevented and navigation will occur only if programmatic navigation is implemented.When navigational is set to true, the url (path) will be automatically added to the href attribute of the rendered links. In this state, the click event will trigger navigation.

C#
public BreadcrumbBuilder Navigational(bool value)
Parameters:valuebool

The value for Navigational

Returns:

BreadcrumbBuilder

Returns the current BreadcrumbBuilder instance.

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("breadcrumb")
.Navigational(true)
)

Defines a name of an existing icon in the Kendo UI Web Font Icons. The icon will be applied as the first item(root) of Breadcrumb path.The root icon is clickable and resets the value of the component.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 BreadcrumbBuilder RootIcon(Action<BreadcrumbRootIconSettingsBuilder> configurator)
Parameters:configuratorAction<BreadcrumbRootIconSettingsBuilder>

The BreadcrumbRootIconSettingsBuilder for the rooticon setting.

Returns:

BreadcrumbBuilder

Returns the current instance of BreadcrumbBuilder .

Defines a name of an existing icon in the Kendo UI Web Font Icons. The icon will be applied as the first item(root) of Breadcrumb path.The root icon is clickable and resets the value of the component.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 BreadcrumbBuilder RootIcon(string rootIcon)
Parameters:rootIconstring

The rooticon.

Returns:

BreadcrumbBuilder

Returns the current instance of BreadcrumbBuilder .

Sets the size of the component.

C#
public BreadcrumbBuilder Size(ComponentSize value)
Parameters:valueComponentSize

The value for Size

Returns:

BreadcrumbBuilder

Returns the current BreadcrumbBuilder instance.

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("breadcrumb")
.Size(ComponentSize.Medium)
)

Sets the Breadcrumb tag. A nav tag is used by default.

C#
public BreadcrumbBuilder Tag(string tag)
Parameters:tagstringReturns:

BreadcrumbBuilder

Returns the current BreadcrumbBuilder instance.

Example:
C#
@( Html.Kendo().Breadcrumb()
.Name("Breadcrumb")
.Tag("input")
)

Defines the value/path of the component. Each segments is separated by a slash.

C#
public BreadcrumbBuilder Value(string value)
Parameters:valuestring

The value for Value

Returns:

BreadcrumbBuilder

Returns the current BreadcrumbBuilder instance.

Example:
C#
@(Html.Kendo().Breadcrumb()
.Name("breadcrumb")
.Value("Telerik UI/Navigation/Breadcrumb")
)