maddoger/yii2-selectize Selectize.js widget for the Yii 2 framework

jqueryselectizeselect

Selectize.js widget for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require maddoger/yii2-selectize:~1.0

or add

"maddoger/yii2-selectize": "~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 maddoger\widgets\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 maddoger\widgets\SelectizeDropDownList;

echo SelectizeDropDownList::widget([
    'name' => 'tags',
    'value' => ['love', 'this', 'game'],
    'clientOptions' => [
        // ...
    ],
]);

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v1.0.0 is the latest of one release



Apache License license
Stats
0 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
28 total downloads