Skip to the main content


BreadcrumbsView

A Backbone view that renders breadcrumbs-type tiered navigation.

Initialize the view by passing in the following attributes:

var view = new BreadcrumbsView({
    el: $('selector for element that will contain breadcrumbs'),
    model: new BreadcrumbsModel({
        breadcrumbs: [{url: '/', title: 'Overview'}]
    }),
    events: {
        'click nav.breadcrumbs a.nav-item': function (event) {
            event.preventDefault();
            window.location = $(event.currentTarget).attr('href');
        }
    }
});