constantingd / yii2-tagsinput
Installs: 346
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:yii2-extension
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: 2025-06-12 08:26:44 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/