uran1980/yii2-textarea-autosize

An Yii2 Textarea Autosize extension based on Autosize javascript library.

0.0.6 2015-03-07 00:00 UTC

This package is auto-updated.

Last update: 2024-04-13 03:21:25 UTC


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