uran1980 / yii2-textarea-autosize
An Yii2 Textarea Autosize extension based on Autosize javascript library.
Installs: 10 167
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/autosize: *
- yiisoft/yii2: ~2
README
This component based on A small, stand-alone script to automatically adjust textarea height.
Installation
Composer
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
Usage
add as dependensy in you AssetBundle.php
for example:
namespace frontend\assets; class YourAppAsset extends \yii\web\AssetBundle { ... public $depends = [ 'uran1980\yii\assets\TextareaAutosizeAsset', ... ]; }
Author
Ivan Yakovlev, e-mail: uran1980@gmail.com