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.
38 onTapPage_: function() {
40 page: this.currentRoute.page,
47 onTapSubpage_: function(event) {
48 var clickedIndex = event.target.dataset.subpageIndex;
50 page: this.currentRoute.page,
51 section: this.currentRoute.section,
52 subpage: this.currentRoute.subpage.slice(0, clickedIndex + 1),