3ch3r46/Jui-Autogrow
The Jquery autogrow extension for texarea in yii framework, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist 3ch3r46/jui-autogrow "*"
or add, (*4)
"3ch3r46/jui-autogrow": "*"
to the require section of your composer.json
file., (*5)
Usage
Once the extension is installed, simply use it in your code by :, (*6)
!#php
<?= \a3ch3r46\juiAutogrow\Autogrow::widget(['selector' => '.text-area-grow']); ?>
or use this with jquery function call :, (*7)
!#php
<?= \a3ch3r46\juiAutogrow\Autogrow::widget(['selector' => '.text-area-grow', 'functionName' => 'makeTextAutogrow']); ?>