Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Side by Side Diff: chrome/browser/resources/settings/dummy_page/dummy_page.js

Issue 986843002: Scaffold for MD-Settings, inside chrome://md-settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Expand scaffold and add to chrome://md-settings (point of this CL) Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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-dummy-page' is a placeholder page for testing settings UI.
8 */
9 Polymer('cr-settings-dummy-page', {
10 publish: {
11 /**
12 * ID of the page.
13 *
14 * @attribute PAGE_ID
15 * @const string
16 * default 'dummy'
17 */
18 PAGE_ID: 'dummy',
19
20 /**
21 * Title for the page header and navigation menu.
22 *
23 * @attribute pageTitle
24 * @type string
25 * @default 'Dummy page'
26 */
27 pageTitle: 'Dummy page',
28
29 /**
30 * Name of the 'core-icon' to show.
31 *
32 * @attribute icon
33 * @type string
34 * @default 'add-circle'
35 */
36 icon: 'add-circle',
37 },
38
39 /**
40 * Placeholder text for help articles.
41 */
42 helpArticles: [{
43 title: 'Dummy Help Article',
44 content: 'You are not a dummy, but in case you need help, this help ' +
45 'article might help.',
46 }, {
47 title: 'Did You Know?',
48 content: 'Oh... you did? Ok. I was just going to... well.. never mind. ' +
49 'I\'ll just let you be, then.',
50 }],
51
52 /**
53 * Event handler for the toggle button for the 'cr-collapse'.
54 */
55 toggleCollapse_: function() {
56 this.$.collapse.toggle();
57 },
58 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698