Breadcrumb is a graphical user interface that helps to identify or highlight the current location within a hierarchical structure of websites. The aim is to make the user aware of their current position in a hierarchy of website links.
<nav id='breadcrumb'></nav>
<script>
var breadcrumbObj = new Breadcrumb({ items: [{ text: 'Home', url: '/' }, { text: 'Index', url: './index.html }]});
breadcrumbObj.appendTo("#breadcrumb");
</script>
string
Specifies the Url of the active Breadcrumb item.
Defaults to ”
string
Defines class/multiple classes separated by a space in the Breadcrumb element.
Defaults to ”
boolean
Enable or disable the breadcrumb, when set to true, the breadcrumb will be disabled.
Defaults to false
boolean
Enable or disable the active item navigation, when set to true, active item will be navigable.
Defaults to false
boolean
Enable or disable the item’s navigation, when set to false, each item navigation will be prevented.
Defaults to true
boolean
Enable or disable persisting component’s state between page reloads.
Defaults to false
boolean
Enable or disable rendering component in right to left direction.
Defaults to false
string
| Function
Specifies the template for Breadcrumb item.
Defaults to null
Defines the list of Breadcrumb items.
Defaults to []
number
Specifies an integer to enable overflow behavior when the Breadcrumb items count exceeds and it is based on the overflowMode property.
Defaults to -1
string
| BreadcrumbOverflowMode
Specifies the overflow mode of the Breadcrumb item when it exceeds maxItems count. The possible values are,
Defaults to BreadcrumbOverflowMode.Menu
string
| Function
Specifies the separator template for Breadcrumb.
Defaults to ’/’
string
Defines the Url based on which the Breadcrumb items are generated.
Defaults to ”
Adds the handler to the given event listener.
Parameter | Type | Description |
---|---|---|
eventName | string |
A String that specifies the name of the event |
handler | Function |
Specifies the call to run when the event occurs. |
Returns void
Appends the control within the given HTML element
Parameter | Type | Description |
---|---|---|
selector (optional) | string | HTMLElement |
Target element where control needs to be appended |
Returns void
Adding unload event to persist data when enable persistence true
Returns void
When invoked, applies the pending property changes immediately to the component.
Returns void
Destroys the widget.
Returns void
Removing unload event to persist data when enable persistence true
Returns void
Returns the persistence data for component
Returns any
Returns the route element of the component
Returns HTMLElement
Handling unload event to persist data when enable persistence true
Returns void
Applies all the pending property changes and render the component again.
Returns void
Removes the handler from the given event listener.
Parameter | Type | Description |
---|---|---|
eventName | string |
A String that specifies the name of the event to remove |
handler | Function |
Specifies the function to remove |
Returns void
Dynamically injects the required modules to the component.
Parameter | Type | Description |
---|---|---|
moduleList | Function[] |
? |
Returns void
EmitType<BreadcrumbBeforeItemRenderEventArgs>
Triggers while rendering each breadcrumb item.
EmitType<Event>
Triggers once the component rendering is completed.
EmitType<BreadcrumbClickEventArgs>
Triggers while clicking the breadcrumb item.