constantingd / yii2-tagsinput
Package info
github.com/constantingd/yii2-tagsinput
Type:yii2-extension
pkg:composer/constantingd/yii2-tagsinput
1.2
2018-05-28 21:01 UTC
Requires
- constantingd/bootstrap-tagsinput: *
- yiisoft/yii2: ~2.0
- yiisoft/yii2-bootstrap: ~2.0.0
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2026-03-19 11:54:14 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/