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

Unified Diff: lib/src/paper-input/paper-input.html

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 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 | « lib/src/paper-icon-button/paper-icon-button.html ('k') | lib/src/paper-input/paper-input-behavior.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/paper-input/paper-input.html
diff --git a/lib/src/paper-input/paper-input.html b/lib/src/paper-input/paper-input.html
index ffd06b8224f1f5b3a236560bab19291a29aa0471..a6b99278bc82de52fb11a26bb56a1f07981a2499 100644
--- a/lib/src/paper-input/paper-input.html
+++ b/lib/src/paper-input/paper-input.html
@@ -16,6 +16,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<link rel="import" href="paper-input-char-counter.html">
<!--
+Material design: [Text fields](https://www.google.com/design/spec/components/text-fields.html)
+
`<paper-input>` is a single-line text field with Material Design styling.
<paper-input label="Input label"></paper-input>
@@ -35,6 +37,15 @@ for `suffix`).
<paper-icon-button suffix icon="clear"></paper-icon-button>
</paper-input>
+A `paper-input` can use the native `type=search` or `type=file` features.
+However, since we can't control the native styling of the input, in these cases
+it's recommended to use a placeholder text, or `always-float-label`,
+as to not overlap the native UI (search icon, file button, etc.).
+
+ <paper-input label="search!" type="search"
+ placeholder="search for cats" autosave="test" results="5">
+ </paper-input>
+
See `Polymer.PaperInputBehavior` for more API docs.
### Styling
@@ -106,7 +117,11 @@ style this element.
size$="[[size]]"
autocapitalize$="[[autocapitalize]]"
autocorrect$="[[autocorrect]]"
- on-change="_onChange">
+ on-change="_onChange"
+ autosave$="[[autosave]]"
+ results$="[[results]]"
+ accept$="[[accept]]"
+ multiple$="[[multiple]]">
<content select="[suffix]"></content>
« no previous file with comments | « lib/src/paper-icon-button/paper-icon-button.html ('k') | lib/src/paper-input/paper-input-behavior.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698