constantingd/yii2-tagsinput

1.2 2018-05-28 21:01 UTC

This package is not auto-updated.

Last update: 2024-09-19 04:53:50 UTC


README

Via Composer

$ composer require constantingd/yii2-tagsinput

или

"constantingd/yii2-tagsinput": "*"

в соотвествующую секцию composer.json.

Использование

В файле view.

<?php
use wbraganca\tagsinput\TagsinputWidget;
?>

<?= $form->field($model, 'tags')->widget(TagsinputWidget::classname(), [
    'clientOptions' => [
        'trimValue' => true,
        'allowDuplicates' => false
    ]
]) ?>

Еще про данный JS плагин: http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/