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

Unified Diff: ui/webui/resources/cr_elements/cr_button/cr_button.js

Issue 939533002: Add a cr-button element, a thin wrapper around paper-button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with suspected fixes for bots Created 5 years, 10 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: ui/webui/resources/cr_elements/cr_button/cr_button.js
diff --git a/ui/webui/resources/cr_elements/cr_button/cr_button.js b/ui/webui/resources/cr_elements/cr_button/cr_button.js
new file mode 100644
index 0000000000000000000000000000000000000000..25b9842d2a0e7f9629cb7fe1a581f989e58ddc02
--- /dev/null
+++ b/ui/webui/resources/cr_elements/cr_button/cr_button.js
@@ -0,0 +1,40 @@
+/* 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-button' is a chrome-specific wrapper around paper-button.
+ *
+ * Example:
+ *
+ * <cr-button>Press Here</cr-button>
+ * <cr-button raised>Raised Button</cr-button>
+ * <cr-button>
+ * <core-icon icon="favorite"></core-icon> Custom button
+ * </cr-button>
+ *
+ * @group Chrome Elements
+ * @element cr-button
+ */
+Polymer('cr-button', {
+ publish: {
+ /**
+ * If true, the button will be styled with a shadow.
+ *
+ * @attribute raised
+ * @type boolean
+ * @default false
+ */
+ raised: {value: false, reflect: true},
+
+ /**
+ * If true, the button will be disabled and greyed out.
+ *
+ * @attribute disabled
+ * @type boolean
+ * @default false
+ */
+ disabled: {value: false, reflect: true},
+ },
+});
« no previous file with comments | « ui/webui/resources/cr_elements/cr_button/cr_button.html ('k') | ui/webui/resources/cr_elements/cr_button/demo.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698