autosize

WebJar for autosize

License

License

MIT
Categories

Categories

Auto Application Layer Libs Code Generators
GroupId

GroupId

org.webjars.bowergithub.jackmoore
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

https://www.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.bowergithub.jackmoore/autosize/ -->
<dependency>
    <groupId>org.webjars.bowergithub.jackmoore</groupId>
    <artifactId>autosize</artifactId>
    <version>4.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.jackmoore/autosize/
implementation 'org.webjars.bowergithub.jackmoore:autosize:4.0.2'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.jackmoore/autosize/
implementation ("org.webjars.bowergithub.jackmoore:autosize:4.0.2")
'org.webjars.bowergithub.jackmoore:autosize:jar:4.0.2'
<dependency org="org.webjars.bowergithub.jackmoore" name="autosize" rev="4.0.2">
  <artifact name="autosize" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.jackmoore', module='autosize', version='4.0.2')
)
libraryDependencies += "org.webjars.bowergithub.jackmoore" % "autosize" % "4.0.2"
[org.webjars.bowergithub.jackmoore/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