djabiev/yii2-autosize-textarea

An Yii2 Textarea Autosize extension based on Jack Moore's javascript library.


Keywords
javascript, yii2, textarea autosize, yii2-autosize-textarea
License
MIT

Documentation

Yii2 Autosize Textarea extetion

Js library to autosize textareas on your page Based on stand-alone script to adjust textarea height.

Installation

Composer

Preferred way - Composer.

Either run

php composer.phar require djabiev/yii2-autosize-textarea "dev-master"

or add

"djabiev/yii2-autosize-textarea": "dev-master"

to the require section of your composer.json

Usage

add as dependensy in you AssetBundle.php for example:


namespace frontend\assets;

class YourAppAsset extends \yii\web\AssetBundle
{
    ...
    public $depends = [
        'djabiev\yii\assets\AutosizeTextareaAsset',
        ...
    ];
}

Author

Vladimir Djabiev