new BreadcrumbManager(elem)
- Source:
This class is used by Breadcrumb module
Parameters:
Name | Type | Description |
---|---|---|
elem |
jQuery | DOM Root element of |
Methods
getElements(list)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
list |
$OrderedList | Ordered List of breadcrumb elements wrapped by jquery |
makeNavigation()
- Source:
Default behavior of breadcrumb.
If children exist, it adds
"breadcrumb-navigation" class
(static) calculateListElementsWidth() → {number}
- Source:
Calculates width of component elements
Returns:
widthSum
- Type
- number
(static) calculateWidth()
- Source:
In case breadcrumb elements do no fit the component width
several breadcrum items will be replaced by "..."
(static) init()
- Source:
Calls when "breadcrumb-hide" class is added.
It does initial
calculation
of component width and also adds
recalculation
to window resize event.