1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 * 'settings-breadcrumb' displays the breadcrumb.
11 * <settings-breadcrumb current-route="{{currentRoute}}">
12 * </settings-breadcrumb>
14 * @group Chrome Settings Elements
15 * @element settings-breadcrumb
18 is: 'settings-breadcrumb',
22 * The current active route.
30 * Page titles for the currently active route.
34 observer: 'currentRouteTitlesChanged_',
39 onTapPage_: function() {
41 page: this.currentRoute.page,
48 onTapSubpage_: function(event) {
49 var clickedIndex = event.target.dataset.subpageIndex;
51 page: this.currentRoute.page,
52 section: this.currentRoute.section,
53 subpage: this.currentRoute.subpage.slice(0, clickedIndex + 1),