rbshubham/yii2-widget-tagsinput
最新稳定版本:8.0
Composer 安装命令:
composer require rbshubham/yii2-widget-tagsinput
包简介
A Yii2 wrapper widget for the Bootstrap Tags Input.
README 文档
README
Create a Bootstrap Tags Input Box
Installation
The preferred way to install this extension is through composer. Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json.
To install, either run
$ php composer.phar require rbshubham/yii2-widget-tagsinput
or add
"rbshubham/yii2-widget-tagsinput": "*"
to the require section of your composer.json file.
Usage
use shubham\tagsinput\TagsInput; // Usage with ActiveForm and model echo $form->field($model, 'tags')->widget(TagsInput::classname(), [ "options"=>[ // Input Options Here ], 'pluginOptions'=>[ // Refer to https://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/#options // Enables clear all tags button 'allowClear'=>true; // default true ], 'pluginEvents'=>[ // Refer to https://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/ ] ]); // Without model & without ActiveForm echo TagsInput::widget([ 'name' => 'tags', ]);
For more details, visit: http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/
统计信息
- 总下载量: 297
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2020-02-05