tolik505 / yii2-tag-editor
Widget for tags adding. Based on https://goodies.pixabay.com/jquery/tag-editor/demo.html
Installs: 74
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/jquery-tag-editor: *
- yiisoft/yii2: *
- yiisoft/yii2-jui: *
This package is not auto-updated.
Last update: 2025-02-10 14:22:50 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']) ], ] ]) ?>```