3ch3r46/jui-autogrow

The Jquery autogrow extension for texarea in yii framework

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Type:yii2-extension

1.0.1 2015-01-23 14:05 UTC

This package is not auto-updated.

Last update: 2024-04-23 05:02:45 UTC


README

The Jquery autogrow extension for texarea in yii framework

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist 3ch3r46/jui-autogrow "*"

or add

"3ch3r46/jui-autogrow": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

!#php
<?= \a3ch3r46\juiAutogrow\Autogrow::widget(['selector' => '.text-area-grow']); ?>

or use this with jquery function call :

!#php
<?= \a3ch3r46\juiAutogrow\Autogrow::widget(['selector' => '.text-area-grow', 'functionName' => 'makeTextAutogrow']); ?>