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.
The preferred way to install this extension is through composer.
Either run
$ composer require branchonline/yii2-selectize-widget:~1.0or add
"branchonline/yii2-selectize-widget": "~1.0"
to the require section of your composer.json file.
Selectize has lots of configuration options. For further information, please check the Selectize plugin website.
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' => [
// ...
],
]);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' => [
// ...
],
]);$ ./vendor/bin/phpunitPlease see CONTRIBUTING for details.
The BSD License (BSD). Please see License File for more information.
web development has never been so fun
www.2amigos.us