soless/yii2-tag-editor

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

Installs: 832

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Type:yii2-extension

1.0.0 2019-02-06 17:39 UTC

This package is auto-updated.

Last update: 2024-05-07 05:17:36 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'])
            ],
        ]
    ]) ?>```