1.0.8 • Published 7 years ago

textarea-auto-height v1.0.8

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago