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 * 'cr-settings-main' displays the selected settings page.
11 * <cr-settings-main pages="[[pages]]" selected-page-id="{{selectedId}}">
14 * See cr-settings-drawer for example of use in 'paper-drawer-panel'.
16 * @group Chrome Settings Elements
17 * @element cr-settings-main
20 is: 'cr-settings-main',
26 * @type {?CrSettingsPrefsElement}
34 * The current active route.
42 * Container that determines the sizing of expanded sections.
51 this.expandContainer = this.$.mainContainer;
55 getSelectedPage_: function(currentRoute) {
56 return currentRoute.page || 'basic';