https://github.com/ws-cv-ua/yii2-tagsinput
https://github.com/ws-cv-ua/yii2-tagsinput
php tag-input yii2 yii2-widget
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ws-cv-ua/yii2-tagsinput
- Owner: ws-cv-ua
- Created: 2019-10-14T18:07:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-15T14:09:24.000Z (almost 7 years ago)
- Last Synced: 2024-04-19T13:03:02.210Z (over 2 years ago)
- Topics: php, tag-input, yii2, yii2-widget
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

Yii2 jQuery Tags Input
=========================
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist ws-cv-ua/yii2-tagsinput "*"
```
or add
```
"ws-cv-ua/yii2-tagsinput": "*"
```
to the require section of your `composer.json` file.
Usage
-----
Once the extension is installed, simply use it in your code by :
```php
= \wscvua\yii2tagsinput\AutoloadExample::widget(); ?>
```
More configuration for plugin: [Responsive Tags Input With Autocomplete - jQuery tagsInput](https://www.jqueryscript.net/form/Tags-Input-Autocomplete.html)
[Demos](https://www.jqueryscript.net/demo/Tags-Input-Autocomplete/)
Example with autocompete
---
```php
= $form->field($model, 'tags')->widget(\wscvua\yiitagsinput\TagsWidget::className(), [
'jsOptions' => [
'autocomplete' => [
'source' => [
'tagtest1',
'tagtest2',
]
]
]
]); ?>
```