Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Smart resizing for textareas using jQuery
JavaScript
branch: master
Failed to load latest commit information.
js
.gitignore Updated bower.json and added dependencies to gitignore
LICENSE.md Added extension to license file
README.md Mistake in docs
bower.json Updated bower.json and added dependencies to gitignore

README.md

jQuery.Textarea.Autoresize

https://github.com/AndrewDryga/jQuery.Textarea.Autoresize

About

This plugin resizes textarea height to match it's content height.

Usage

$('textarea').autoresize(params_object);

Params can also be passed via data-api:

<textarea data-default-height="min" data-animated="false"></textarea>

Available params:

Param Default value Description
minHeight textarea height Minimal height for textarea
maxHeight false (unlimited) Maximal height for textarea. If textarea content is bigger than this value, then scrollbar appears.
defaultHeight false (turned off) Height that will be set to the textarea when it loose focus
animation true Animation for focus loose/restore (works only with non-false defaultHeight values)
animationDuration 'slow' A string or number determining how long the animation will run.
animationEasing 'swing' Callback function, called each time plugin resizes textarea
onResize $.noop Callback function, called on each time plugin resizes the textarea

Author

Andrew Dryga

License

MIT (Look into LICENSE.md file)

Something went wrong with that request. Please try again.