OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 /** | |
6 * @fileoverview | |
7 * 'cr-settings-section' shows a paper material themed section with a header | |
8 * which shows its page title and icon. | |
9 * | |
10 * Example: | |
11 * | |
12 * <cr-settings-section page-title="[[pageTitle]]" icon="[[icon]]"> | |
13 * <!-- Insert your section controls here --> | |
14 * </cr-settings-section> | |
15 * | |
16 * @group Chrome Settings Elements | |
17 * @element cr-settings-section | |
18 */ | |
19 Polymer({ | |
20 is: 'cr-settings-section', | |
21 | |
22 properties: { | |
23 /** | |
24 * Title for the page header and navigation menu. | |
25 */ | |
26 pageTitle: { | |
Dan Beam
2015/07/23 18:33:08
can't these be simplified to:
pageTitle: String
tommycli
2015/07/23 19:00:43
Done. Good call. it worked
| |
27 type: String, | |
28 }, | |
29 | |
30 /** | |
31 * Name of the 'iron-icon' to show. | |
32 */ | |
33 icon: { | |
34 type: String, | |
35 }, | |
36 }, | |
37 }); | |
OLD | NEW |