tolik505 / yii2-tag-editor
Widget for tags adding. Based on https://goodies.pixabay.com/jquery/tag-editor/demo.html
Package info
github.com/tolik505/yii2-tag-editor
Type:yii2-extension
pkg:composer/tolik505/yii2-tag-editor
dev-master
2016-10-28 08:07 UTC
Requires
- bower-asset/jquery-tag-editor: *
- yiisoft/yii2: *
- yiisoft/yii2-jui: *
This package is not auto-updated.
Last update: 2026-03-09 19:42:16 UTC
README
Widget for tags adding. Based on https://goodies.pixabay.com/jquery/tag-editor/demo.html
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist tolik505/yii2-tag-editor "*"
or add
"tolik505/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, 'tags')->widget(TagEditor::className(), [ 'tagEditorOptions' => [ 'autocomplete' => [ 'source' => Url::toRoute(['route/to/get-tags-action']) ], ] ]) ?>```