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-page' is the base class for settings pages. |
| 8 * |
| 9 * Example: |
| 10 * |
| 11 * <polymer-element name="cr-settings-a11y-page" extends="cr-settings-page"> |
| 12 * ... |
| 13 * </polymer-element> |
| 14 * |
| 15 * @group Chrome Settings Elements |
| 16 * @element cr-settings-page |
| 17 */ |
| 18 Polymer('cr-settings-page', { |
| 19 publish: { |
| 20 /** |
| 21 * Preferences state. |
| 22 * |
| 23 * @attribute prefs |
| 24 * @type CrSettingsPrefsElement |
| 25 * @default null |
| 26 */ |
| 27 prefs: null, |
| 28 |
| 29 /** |
| 30 * ID of the page. |
| 31 * |
| 32 * @attribute pageId |
| 33 * @type string |
| 34 * @default '' |
| 35 */ |
| 36 pageId: '', |
| 37 |
| 38 /** |
| 39 * Title for the page header and navigation menu. |
| 40 * |
| 41 * @attribute pageTitle |
| 42 * @type string |
| 43 * @default '' |
| 44 */ |
| 45 pageTitle: '', |
| 46 |
| 47 /** |
| 48 * Name of the 'core-icon' to show. |
| 49 * |
| 50 * @attribute icon |
| 51 * @type string |
| 52 * @default '' |
| 53 */ |
| 54 icon: '', |
| 55 |
| 56 /** |
| 57 * Text for help articles. |
| 58 * TODO(michaelpg): Expand and set on actual pages once Help features are |
| 59 * clarified. |
| 60 */ |
| 61 helpArticles: [{ |
| 62 title: 'Help Article', |
| 63 content: 'Odi et amo. Quare id faciam, fortasse requiris? Nescio, sed ' + |
| 64 'fieri sentio et excrucior.', |
| 65 }, { |
| 66 title: 'More Help', |
| 67 content: 'Arma virumque cano, Troiae qui primus ab oris Italiam, fato ' + |
| 68 'profugus, Laviniaque venit litora, multum ille et terris ' + |
| 69 'iactatus et alto vi superum saevae memorem Iunonis ob iram; ' + |
| 70 'multa quoque et bello passus, dum conderet urbem, ' + |
| 71 'inferretque deos Latio, genus unde Latinum, Albanique ' + |
| 72 'patres, atque altae moenia Romae.', |
| 73 }], |
| 74 }, |
| 75 }); |
OLD | NEW |