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

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

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.html
diff --git a/third_party/polymer/v0_8/components-chromium/paper-input/paper-input.html b/third_party/polymer/v0_8/components-chromium/paper-input/paper-input.html
new file mode 100644
index 0000000000000000000000000000000000000000..2d8d7850736a60fbd3df9e0d3ebcf2a78dfeb5e2
--- /dev/null
+++ b/third_party/polymer/v0_8/components-chromium/paper-input/paper-input.html
@@ -0,0 +1,45 @@
+<!--
+@license
+Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
+This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
+The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
+The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
+Code distributed by Google as part of the polymer project is also
+subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
+--><html><head><link rel="import" href="../polymer/polymer.html">
+<link rel="import" href="../iron-input/iron-input.html">
+<link rel="import" href="paper-input-container.html">
+<link rel="import" href="paper-input-error.html">
+<link rel="import" href="paper-input-char-counter.html">
+
+<!--
+`<paper-input>` is a text field.
+-->
+
+</head><body><dom-module id="paper-input">
+
+ <template>
+
+ <paper-input-container no-label-float$="[[noLabelFloat]]" auto-validate$="[[autoValidate]]">
+
+ <template is="x-if" if="[[label]]">
+ <label>[[parent.label]]</label>
+ </template>
+
+ <input is="iron-input" id="input" bind-value="{{value}}" prevent-invalid-input="[[preventInvalidInput]]" type$="[[type]]" pattern$="[[pattern]]" maxlength$="[[maxlength]]" required$="[[required]]">
+
+ <template is="x-if" if="[[errorMessage]]">
+ <paper-input-error>[[parent.errorMessage]]</paper-input-error>
+ </template>
+
+ <template is="x-if" if="[[charCounter]]">
+ <paper-input-char-counter></paper-input-char-counter>
+ </template>
+
+ </paper-input-container>
+
+ </template>
+
+</dom-module>
+
+<script src="paper-input-extracted.js"></script></body></html>

Powered by Google App Engine
This is Rietveld 408576698