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

Side by Side Diff: third_party/polymer/v1_0/components/iron-autogrow-textarea/README.md

Issue 1269803005: Remove third_party/polymer from .gitignore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 # iron-autogrow-textarea
2
3 `iron-autogrow-textarea` is an element containing a textarea that grows in heigh t as more
4 lines of input are entered. Unless an explicit height or the `maxRows` property is set, it will
5 never scroll.
6
7 Example:
8
9 <iron-autogrow-textarea id="a1">
10 <textarea id="t1"></textarea>
11 </iron-autogrow-textarea>
12
13 Because the `textarea`'s `value` property is not observable, you should use
14 this element's `bind-value` instead for imperative updates. Alternatively, if
15 you do set the `textarea`'s `value` imperatively, you must also call `update`
16 to notify this element the value has changed.
17
18 Example:
19 /* preferred, using the example HTML above*/
20 a1.bindValue = 'some\ntext';
21
22 /* alternatively, */
23 t1.value = 'some\ntext';
24 a1.update();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698