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

Unified Diff: chrome/browser/resources/settings/settings_page/settings_section.js

Issue 1241363002: Settings Rewrite: Make a common settings-section component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0300-webui-settings-structure
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/settings_page/settings_section.js
diff --git a/chrome/browser/resources/settings/settings_page/settings_section.js b/chrome/browser/resources/settings/settings_page/settings_section.js
new file mode 100644
index 0000000000000000000000000000000000000000..476754a32e4d94e72614efe8658e09741a3dc374
--- /dev/null
+++ b/chrome/browser/resources/settings/settings_page/settings_section.js
@@ -0,0 +1,33 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview
+ * 'cr-settings-section' shows a paper material themed section with a header
+ * which shows its page title and icon.
+ *
+ * Example:
+ *
+ * <cr-settings-section page-title="[[pageTitle]]" icon="[[icon]]">
+ * <!-- Insert your section controls here -->
+ * </cr-settings-section>
+ *
+ * @group Chrome Settings Elements
+ * @element cr-settings-section
+ */
+Polymer({
+ is: 'cr-settings-section',
+
+ properties: {
+ /**
+ * Title for the page header and navigation menu.
+ */
+ pageTitle: String,
+
+ /**
+ * Name of the 'iron-icon' to show.
+ */
+ icon: String,
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698