autosize

WebJar for autosize

License

License

MIT
Categories

Categories

Auto Application Layer Libs Code Generators
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

autosize
Last Version

Last Version

4.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

autosize
WebJar for autosize
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jackmoore/autosize

Download autosize

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/autosize/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>autosize</artifactId>
    <version>4.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/autosize/
implementation 'org.webjars.bower:autosize:4.0.2'
// https://jarcasting.com/artifacts/org.webjars.bower/autosize/
implementation ("org.webjars.bower:autosize:4.0.2")
'org.webjars.bower:autosize:jar:4.0.2'
<dependency org="org.webjars.bower" name="autosize" rev="4.0.2">
  <artifact name="autosize" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='autosize', version='4.0.2')
)
libraryDependencies += "org.webjars.bower" % "autosize" % "4.0.2"
[org.webjars.bower/autosize "4.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Summary

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

Demo

Full documentation and a demo can be found at jacklmoore.com/autosize

Install via NPM

npm install autosize

Browser compatibility

Chrome Firefox IE Safari iOS Safari Android Opera Mini Windows Phone IE
yes yes 9 yes yes 4 ? 8.1

Usage

The autosize function accepts a single textarea element, or an array or array-like object (such as a NodeList or jQuery collection) of textarea elements.

// from a NodeList
autosize(document.querySelectorAll('textarea'));

// from a single Node
autosize(document.querySelector('textarea'));

// from a jQuery collection
autosize($('textarea'));

Released under the MIT License

Versions

Version
4.0.2
3.0.21
3.0.20
3.0.15
3.0.13
2.0.0
1.18.17