ferrumfist / yii2-autocomplete
The selectize.js widget for the Yii framework
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 41
Type:yii2-extension
Requires
- bower-asset/selectize: ~0.12.0
- yiisoft/yii2: ~2.0.0
- yiisoft/yii2-bootstrap: ~2.0.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-11-09 20:39:39 UTC
README
Selectize is an extensible jQuery-based custom <select> UI control. It's useful for tagging, contact lists, country selectors, and so on. It clocks in at around ~7kb (gzipped). The goal is to provide a solid & usable experience with a clean and powerful API.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require ferrumfist/yii2-autocomplete:~1.0
or add
"ferrumfist/yii2-autocomplete": "~1.0"
to the require
section of your composer.json
file.
Usage
Selectize has lots of configuration options. For further information, please check the Selectize plugin website.
Text input widget
To use text input widget add the following to the view
use dosamigos\selectize\SelectizeTextInput; echo SelectizeTextInput::widget([ 'name' => 'tags', 'value' => 'love, this, game', 'clientOptions' => [ // ... ], ]);
Dropdown list widget
To use dropdown list widget add the following to the view
use dosamigos\selectize\SelectizeDropDownList; echo SelectizeDropDownList::widget([ 'name' => 'tags', 'value' => ['love', 'this', 'game'], 'clientOptions' => [ // ... ], ]);
Testing
$ ./vendor/bin/phpunit
Contributing
Please see CONTRIBUTING for details.
Credits
License
The BSD License (BSD). Please see License File for more information.
web development has never been so fun
www.2amigos.us