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

Unified Diff: polymer_1.0.4/bower_components/iron-autogrow-textarea/README.md

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 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: polymer_1.0.4/bower_components/iron-autogrow-textarea/README.md
diff --git a/polymer_1.0.4/bower_components/iron-autogrow-textarea/README.md b/polymer_1.0.4/bower_components/iron-autogrow-textarea/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..7242abce56d74eb185346cc81a56059035ee79eb
--- /dev/null
+++ b/polymer_1.0.4/bower_components/iron-autogrow-textarea/README.md
@@ -0,0 +1,24 @@
+# iron-autogrow-textarea
+
+`iron-autogrow-textarea` is an element containing a textarea that grows in height as more
+lines of input are entered. Unless an explicit height or the `maxRows` property is set, it will
+never scroll.
+
+Example:
+
+ <iron-autogrow-textarea id="a1">
+ <textarea id="t1"></textarea>
+ </iron-autogrow-textarea>
+
+Because the `textarea`'s `value` property is not observable, you should use
+this element's `bind-value` instead for imperative updates. Alternatively, if
+you do set the `textarea`'s `value` imperatively, you must also call `update`
+to notify this element the value has changed.
+
+ Example:
+ /* preferred, using the example HTML above*/
+ a1.bindValue = 'some\ntext';
+
+ /* alternatively, */
+ t1.value = 'some\ntext';
+ a1.update();

Powered by Google App Engine
This is Rietveld 408576698