wbraganca / yii2-tagsinput
The yii2-tagsinput is a Yii 2 wrapper for [bootstrap-tagsinput](https://github.com/timschlechter/bootstrap-tagsinput). A user interface for managing tags.
Installs: 145 334
Dependents: 2
Suggesters: 0
Security: 0
Stars: 31
Watchers: 3
Forks: 24
Open Issues: 7
Type:yii2-extension
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-11-09 18:22:08 UTC
README
Install
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.
Usage
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/