A tag editor wrapper of jQuery-tagEditor for Yii2.0
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.
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'=>[
//...
]
]); ?>