This component based on A small, stand-alone script to automatically adjust textarea height.
The preferred way to install this extension is through Composer.
Either run
php composer.phar require uran1980/yii2-textarea-autosize "dev-master"
or add
"uran1980/yii2-textarea-autosize": "dev-master"
to the require section of your composer.json
add as dependensy in you AssetBundle.php
for example:
namespace frontend\assets;
class YourAppAsset extends \yii\web\AssetBundle
{
...
public $depends = [
'uran1980\yii\assets\TextareaAutosizeAsset',
...
];
}
Ivan Yakovlev, e-mail: uran1980@gmail.com
Comments