Breadcrumb
Kendo UI Breadcrumb component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Breadcrumb : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseBreadcrumb
Implements:
Inherited Members
Constructors
Initializes a new instance of the Breadcrumb class.
public Breadcrumb(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
Indicates whether the Breadcrumb will enable/disable the binding to the location object of the browser on initialization.
public bool? BindToLocation { get; set; }
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.
public string DelimiterIcon { get; set; }
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.
public bool? Editable { get; set; }
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.
public double? Gap { get; set; }
Array of items to be rendered in Breadcrumb.
public List<BreadcrumbItem> Items { get; set; }
Defines the text of the root icon title that is displayed within the Breadcrumb.
public BreadcrumbMessagesSettings Messages { get; set; }
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.
public bool? Navigational { get; set; }
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.
public string RootIcon { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
Defines the tag from which the component is initialized. Could be "input" or "nav".
public string Tag { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: