The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 2 more by this user. Created: 11/4/09
Last CDN Push: 03/23/10
Build Tag: gallery-2010.03.23-17-54
Project: YUI 3
License: YUI BSD
YUI Version: 3.0.0
Free for use.
Module to automatically expand a textarea's height as users type in additional lines.
This code attaches to textarea nodes via the 'plug' method. You can specify the min_height, max_height, and line_height, if wanted.
<script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script>
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2010.03.23-17-54'
}).use("node", 'gallery-text-expander', function(Y) {
Y.all("textarea").plug(Y.TextExpander);
});
Subject | Author | Date |
---|---|---|
Jumpiness on backspace | Arun Gupta | 05/6/10 |
[BUG] Textareas with padding | marekk | 07/15/11 |
Too late to change namespace? | John Lindal | 07/15/11 |
Could use a reset method | Marc | 06/11/12 |
All code on this site is licensed under the BSD License unless stated otherwise.