wbraganca / yii2-tagsinput
yii2-tagsinput 是 [bootstrap-tagsinput](https://github.com/timschlechter/bootstrap-tagsinput) 的 Yii 2 封装。一个用于管理标签的用户界面。
1.0.2
2017-03-19 01:42 UTC
Requires
- bower-asset/bootstrap-tagsinput: ~0.8
- 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-09-14 17:37:28 UTC
README
安装
通过 Composer
$ composer require "wbraganca/yii2-tagsinput:~1.0.2"
或在您的 composer.json
文件的 require 部分添加。
"wbraganca/yii2-tagsinput": "~1.0.2"
到您的 composer.json
文件的 require 部分添加。
用法
在您的视图文件中。
<?php use wbraganca\tagsinput\TagsinputWidget; ?> <?= $form->field($model, 'tags')->widget(TagsinputWidget::classname(), [ 'clientOptions' => [ 'trimValue' => true, 'allowDuplicates' => false ] ]) ?>
更多选项,请访问: http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/