Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textarea-auto-height

Automatically adjust textarea height

Install

$npm install textarea-auto-height

Usage

<textarea id="content" />
import TextAreaAutoHeight from 'textarea-auto-height';

let autoHeight = new TextAreaAutoHeight( jQuery( '#content' ) );

autoHeight.reset();

let autoHeight = new TextAreaAutoHeight( jQuery( '#content' ), jQuery( '#parent' ), 50 );

let autoHeight = new TextAreaAutoHeight( jQuery( '#content' ), jQuery( '#parent' ), 50, 1.5 /*lineHeight*/ );
//jQuery( '#content' ).css( 'line-height' )

let autoHeight = new TextAreaAutoHeight( jQuery( '#content' ), jQuery( '#parent' ), 50, 1.5, 460 /*maxHeight*/ );

License

© 2015 ingpdw. MIT License

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages