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

Unified Diff: third_party/polymer/v0_8/components-chromium/paper-input/paper-input-extracted.js

Issue 1082403004: Import Polymer 0.8 and several key elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also remove polymer/explainer Created 5 years, 8 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: third_party/polymer/v0_8/components-chromium/paper-input/paper-input-extracted.js
diff --git a/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-extracted.js b/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-extracted.js
new file mode 100644
index 0000000000000000000000000000000000000000..9f85a723ce27ad3b68817f6df19f8549b38fc1bb
--- /dev/null
+++ b/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-extracted.js
@@ -0,0 +1,105 @@
+
+
+(function() {
+
+ Polymer({
+
+ is: 'paper-input',
+
+ properties: {
+
+ /**
+ * The label for this input.
+ */
+ label: {
+ type: String
+ },
+
+ /**
+ * The value for this input.
+ */
+ value: {
+ notify: true,
+ type: String
+ },
+
+ /**
+ * Set to true to prevent the user from entering invalid input.
+ */
+ preventInvalidInput: {
+ type: Boolean
+ },
+
+ /**
+ * The type of the input. The supported types are `text`, `number` and `password`.
+ */
+ type: {
+ type: String
+ },
+
+ /**
+ * A pattern to validate the `input` with.
+ */
+ pattern: {
+ type: String
+ },
+
+ /**
+ * Set to true to mark the input as required.
+ */
+ required: {
+ type: Boolean,
+ value: false
+ },
+
+ /**
+ * The maximum length of the input value.
+ */
+ maxlength: {
+ type: Number
+ },
+
+ /**
+ * The error message to display when the input is invalid.
+ */
+ errorMessage: {
+ type: String
+ },
+
+ /**
+ * Set to true to show a character counter.
+ */
+ charCounter: {
+ type: Boolean,
+ value: false
+ },
+
+ /**
+ * Set to true to disable the floating label.
+ */
+ noLabelFloat: {
+ type: Boolean,
+ value: false
+ },
+
+ /**
+ * Set to true to auto-validate the input value.
+ */
+ autoValidate: {
+ type: Boolean,
+ value: false
+ }
+
+ },
+
+ /**
+ * Returns a reference to the input element.
+ */
+ get inputElement() {
+ return this.$.input;
+ }
+
+ })
+
+})();
+

Powered by Google App Engine
This is Rietveld 408576698