wbraganca/yii2-tagsinput

yii2-tagsinput 是 [bootstrap-tagsinput](https://github.com/timschlechter/bootstrap-tagsinput) 的 Yii 2 封装。一个用于管理标签的用户界面。

安装次数: 142,418

依赖项: 2

建议者: 0

安全性: 0

星标: 31

关注者: 3

分支: 24

开放问题: 7

类型:yii2-extension

1.0.2 2017-03-19 01:42 UTC

This package is not auto-updated.

Last update: 2024-09-14 17:37:28 UTC


README

Latest Version Software License Total Downloads

安装

通过 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/