tolik505/yii2-tag-editor

Widget for tags adding. Based on https://goodies.pixabay.com/jquery/tag-editor/demo.html

Installs: 65

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 0

Type:yii2-extension

dev-master 2016-10-28 08:07 UTC

This package is not auto-updated.

Last update: 2024-05-06 10:50:59 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'])
            ],
        ]
    ]) ?>```