Constructor
new BreadCrumb(optionsopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
options
Properties
|
- Source:
Members
(private) totalWidth :int
Total width of all breadcrumbs
Type:
- Source:
Methods
_createMenu()
Create and append the popovermenu
- Source:
_getCrumbElement()
Get the crumb to show
- Source:
_hideCrumb()
Hide the middle crumb
- Source:
_makeCrumbs(dir) → {Object.<String, String>}
Makes a breadcrumb structure based on the given path
Parameters:
Name | Type | Description |
---|---|---|
dir |
String | path to split into a breadcrumb structure |
- Source:
Returns:
map of {dir: path, name: displayName}
- Type
- Object.<String, String>
_showCrumb()
Show the middle crumb
- Source:
_updateMenu()
Update the popovermenu
- Source:
addDetailView(detailView)
Parameters:
Name | Type | Description |
---|---|---|
detailView |
Backbone.View |
- Source:
getCrumbUrl(part, index)
Returns the full URL to the given directory
Parameters:
Name | Type | Description |
---|---|---|
part |
Object.<String, String> | crumb data as map |
index |
int | crumb index |
- Source:
Returns:
full URL
getTotalWidth(ignoreHidden)
Calculate real width based on individual crumbs
Parameters:
Name | Type | Description |
---|---|---|
ignoreHidden |
boolean | ignore hidden crumbs |
- Source:
render()
Renders the breadcrumb elements
- Source:
setDirectory(dir)
Sets the directory to be displayed as breadcrumb.
This will re-render the breadcrumb.
Parameters:
Name | Type | Description |
---|---|---|
dir |
path to be displayed as breadcrumb |
- Source: