2.0.1 • Published 6 years ago

storm-textarea v2.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Storm Textarea

npm version

Auto resize textareas to fit value

Example

https://mjbp.github.io/storm-textarea

Usage

JS

npm install storm-textarea

either using es6 import

import Textarea from 'storm-textarea';

Textarea('textarea');

aynchronous browser loading (use the .standalone version in the /dist folder)

import Load from 'storm-load';

Load('/content/js/async/storm-textarea.standalone.js')
    .then(() => {
        StormTextarea('textarea');

Options

{
    events: [
        'input',
    ]
}

e.g.

Textarea.init('textarea', {
    events: [
        'input',
        'drop',
        'paste',
        'focus'
    ]
})

Tests

npm run test

Browser support

This is module has both es6 and es5 distributions. The es6 version should be used in a workflow that transpiles.

Dependencies

None

License

MIT

2.0.1

6 years ago

2.0.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago