rbshubham / yii2-widget-tagsinput
A Yii2 wrapper widget for the Bootstrap Tags Input.
Installs: 232
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
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/