Breadcrumb is a simple plugin allowing to programmatically manipulate breadcrumb.
Downloadvar breadcrumb = $('#my-breadcrumb').breadcrumb(options);
breadcrumb.push('Level');
breadcrumb.pop();
| Name | type | default | description |
|---|---|---|---|
| divider | string | / | String used as divider. |
Push a new element path to this breadcrumb.
breadcrumb.push('element')
Pop `iterations` elements from this breadcrumb.
breadcrumb.pop(1)
Reset this breadcrumb.
breadcrumb.reset()
Bootstrap's breadcrumb class exposes a few events for hooking into breadcrumb functionality.
| Event | Description |
|---|---|
| change | This event is fired when the breadcrumb path is modified. |
$('#my-breadcrumb').on('change', function (el, path) {
// do something ...
})