soless / yii2-tag-editor
Widget for tags adding. Based on https://goodies.pixabay.com/jquery/tag-editor/demo.html
Installs: 1 001
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Type:yii2-extension
Requires
- bower-asset/jquery-tag-editor: *
- yiisoft/yii2: *
- yiisoft/yii2-jui: *
This package is auto-updated.
Last update: 2025-03-07 07:20:17 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 soless/yii2-tag-editor "*"
or add
"soless/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']) ], ] ]) ?>```