Via Composer
$ composer require "wbraganca/yii2-tagsinput:~1.0.2"
or add to the require section of your composer.json
file.
"wbraganca/yii2-tagsinput": "~1.0.2"
to the require section of your composer.json
file.
On your view file.
<?php
use wbraganca\tagsinput\TagsinputWidget;
?>
<?= $form->field($model, 'tags')->widget(TagsinputWidget::classname(), [
'clientOptions' => [
'trimValue' => true,
'allowDuplicates' => false
]
]) ?>
For more options, visit: http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/
Date: 18-Mar-2017
Date: 08-Nov-2015
Date: 27-Apr-2015
Initial release
Comments