rogeecn/yii2-tag-editor

A tag editor wrapper of jQuery-tagEditor for Yii2.0

Installs: 1 761

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.1 2017-11-28 14:24 UTC

This package is auto-updated.

Last update: 2024-04-05 18:50:11 UTC


README

A tag editor wrapper of jQuery-tagEditor for Yii2.0

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist rogeecn/yii2-tag-editor "*"

or add

"rogeecn/yii2-tag-editor": "*"

to the require section of your composer.json file.

Usage

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

<?= $form->field($model, "tag")->widget(\rogeecn\TagEditor\EditorWidget::className()) ?>

or

<?= \rogeecn\TagEditor\EditorWidget::widget([
    'name'=>'tag',
    'model'=>$model,
    'clientOptions'=>[
        //...    
    ]
]); ?>