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-ui' implements the UI for the Settings page. | |
8 * | |
9 * Example: | |
10 * | |
11 * <cr-settings-ui prefs="{{prefs}}"></cr-settings-ui> | |
12 * | |
13 * @group Chrome Settings Elements | |
14 * @element cr-settings-ui | |
15 */ | |
16 Polymer('cr-settings-ui', { | |
17 publish: { | |
18 /** | |
19 * Preferences state. | |
20 * | |
21 * @attribute prefs | |
22 * @type CrSettingsPrefsElement | |
23 * @default null | |
24 */ | |
25 prefs: null, | |
26 | |
27 /** | |
28 * Ordered list of settings pages available to the user. | |
29 * | |
30 * To avoid unnecessary DOM manipulation, prefer using Array.prototype | |
Jeremy Klein
2015/03/12 02:11:18
Is this comment still applicable if we add the pag
michaelpg
2015/03/12 06:29:37
Done.
| |
31 * functions on this attribute rather than replacing it with a new array | |
32 * after setting the attribute initially. | |
33 * | |
34 * @attribute pages | |
35 * @type Array<!Object> | |
36 * @default null | |
37 */ | |
38 pages: null, | |
39 }, | |
40 | |
41 /** @override */ | |
42 created: function() { | |
43 this.pages = []; | |
44 }, | |
45 }); | |
OLD | NEW |