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

Unified Diff: ui/webui/resources/cr_elements/cr_input/demo.html

Issue 918913002: Add a <cr-input> element to cr_elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a license header to cr_input.css 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
« no previous file with comments | « ui/webui/resources/cr_elements/cr_input/cr_input.js ('k') | ui/webui/resources/cr_elements_resources.grdp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/cr_elements/cr_input/demo.html
diff --git a/ui/webui/resources/cr_elements/cr_input/demo.html b/ui/webui/resources/cr_elements/cr_input/demo.html
new file mode 100644
index 0000000000000000000000000000000000000000..0934e48f9ee2aea5b595993260019b1972744ddd
--- /dev/null
+++ b/ui/webui/resources/cr_elements/cr_input/demo.html
@@ -0,0 +1,14 @@
+<!doctype html>
+<html>
+<head>
+ <link href="cr_input.html" rel="import">
+</head>
+<body unresolved>
+ <cr-input label="Blah"></cr-input>
+ <cr-input label="This is required" required error="Put something here!">
+ </cr-input>
+ <cr-input label="Only numbers" pattern="^[0-9]*$"
+ error="Only numbers allowed!"></cr-input>
+ <cr-input label="Password" type="password"></cr-input>
+</body>
+</html>
« no previous file with comments | « ui/webui/resources/cr_elements/cr_input/cr_input.js ('k') | ui/webui/resources/cr_elements_resources.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698