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

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

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 years, 3 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/components-chromium/paper-input/demo.html
diff --git a/third_party/polymer/components-chromium/paper-input/demo.html b/third_party/polymer/components-chromium/paper-input/demo.html
new file mode 100644
index 0000000000000000000000000000000000000000..457d58784f50c530d4d8cb8b02f3a4d28d202982
--- /dev/null
+++ b/third_party/polymer/components-chromium/paper-input/demo.html
@@ -0,0 +1,73 @@
+<!doctype html>
+<html>
+<head>
+
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+
+ <title>paper-input</title>
+
+ <script src="../platform/platform.js"></script>
+
+ <link href="../font-roboto/roboto.html" rel="import">
+ <link href="paper-input.html" rel="import">
+
+ <style shim-shadowdom>
+
+ body {
+ font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
+ margin: 0;
+ padding: 24px;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
+ -webkit-touch-callout: none;
+ }
+
+ </style>
+
+</head>
+<body unresolved>
+ <section>
+
+ <paper-input label="Type something..."></paper-input>
+
+ <br>
+
+ <paper-input label="Type only numbers..." type="number" error="Input is not a number!"></paper-input>
+
+ <br>
+
+ <paper-input label="Type something..." required error="This input requires a value!"></paper-input>
+
+ <br>
+
+ <paper-input disabled label="I'm disabled"></paper-input>
+
+ <br>
+
+ <paper-input floatingLabel label="Floating label"></paper-input>
+
+ <br>
+
+ <paper-input floatingLabel label="Type only numbers... (floating)" type="number" error="Input is not a number!"></paper-input>
+
+ <br>
+
+ <paper-input multiline label="Type multiple lines here..."></paper-input>
+
+ <br>
+
+ <paper-input multiline rows="3" label="This input is 3 rows high"></paper-input>
+
+ <br>
+
+ <paper-input multiline maxRows="3" label="This input is at most 3 rows high"></paper-input>
+
+ <br>
+
+ <paper-input multiline floatingLabel label="Multiple lines and a floating label"></paper-input>
+
+ </section>
+</body>

Powered by Google App Engine
This is Rietveld 408576698