# j-Breadcrumb

> j-Breadcrumb: NEW: arrowicon {String} arrow icon (default: ti ti-angle-right)

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: f6b15bf709de4fa96624418a2a37ea0d0d5e417740570d94dbbc285ac02e4157
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

__Configuration__:

- `icon {String}` home icon (default: `ti ti-home`)
- `exec {String}` path to the method `function(url, el)` for manual processing of links
- `historyapi {Boolean}` enables redirecting via `REDIRECT()` (default `true`)
- `style {Number}` supports two styles `1` classic (default), `2` with bigger padding and only with bottom border
- `root {String}` a label for root item (default: `Root`)
- `rooturl {String}` a relative URL address for root item (default: `/`)
- `title {String}` enables generating `document.title` from the last item of the breadcrumb (default: `null`)
- __NEW__: `arrowicon {String}` arrow icon (default: `ti ti-angle-right`)

## Data-source example

```js
[
	{
		name: 'Home',                // A link label
		url: '/'                     // URL address
		callback: Function(el, e)    // Optional, a callback for the click event
	},
	{
		name: 'Products',            // A link label
		url: '/'                     // URL address
	}
];
```

## Methods

- `component.add(name1, url1, [callback])(name2, url2)(name3, url3)...`
- `component.root()` it resets a breadcrumb

Use it with `<ui-component name="breadcrumb">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<ui-component name="breadcrumb" path="common.breadcrumb">
	<div>Here you can use j-VirtualWire component</div>
</ui-component>

<script>
	var common = {};
	common.breadcrumb = [{ name: 'Home', url: '/' }, { name: 'Entities', url: '/entities/' }];
</script>
```
