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: 2024-10-03 05:00:12 UTC
README
通过 Composer
$ composer require constantingd/yii2-tagsinput
或者
"constantingd/yii2-tagsinput": "*"
在相应的 composer.json 节中。
使用方法
在视图文件中。
<?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/