| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-section' shows a paper material themed section with a header | 7 * 'settings-section' shows a paper material themed section with a header |
| 8 * which shows its page title. | 8 * which shows its page title. |
| 9 * | 9 * |
| 10 * Example: | 10 * Example: |
| 11 * | 11 * |
| 12 * <settings-section page-title="[[pageTitle]]" section="privacy"> | 12 * <settings-section page-title="[[pageTitle]]" section="privacy"> |
| 13 * <!-- Insert your section controls here --> | 13 * <!-- Insert your section controls here --> |
| 14 * </settings-section> | 14 * </settings-section> |
| 15 */ | 15 */ |
| 16 Polymer({ | 16 Polymer({ |
| 17 is: 'settings-section', | 17 is: 'settings-section', |
| 18 | 18 |
| 19 properties: { | 19 properties: { |
| 20 /** | 20 /** |
| 21 * The current active route. | |
| 22 */ | |
| 23 currentRoute: Object, | |
| 24 | |
| 25 /** | |
| 26 * The section is expanded to a full-page view when this property matches | 21 * The section is expanded to a full-page view when this property matches |
| 27 * currentRoute.section. | 22 * currentRoute.section. |
| 28 * | 23 * |
| 29 * The section name must match the name specified in settings_router.js. | 24 * The section name must match the name specified in route.js. |
| 30 */ | 25 */ |
| 31 section: { | 26 section: { |
| 32 type: String, | 27 type: String, |
| 33 }, | 28 }, |
| 34 | 29 |
| 35 /** | 30 /** |
| 36 * Title for the page header and navigation menu. | 31 * Title for the page header and navigation menu. |
| 37 */ | 32 */ |
| 38 pageTitle: String, | 33 pageTitle: String, |
| 39 }, | 34 }, |
| 40 }); | 35 }); |
| OLD | NEW |