yii2mod/yii2-chosen-select Chosen Select Widget based on Chosen jQuery plugin

widgetselect

Chosen Select Widget for Yii 2

Chosen Select Widget based on Chosen jQuery plugin chosen

Latest Stable Version Total Downloads License Build Status

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yii2mod/yii2-chosen-select "*"

or add

"yii2mod/yii2-chosen-select": "*"

to the require section of your composer.json.

Usage

1) Usage with ActiveForm and model

   echo $form->field($model, 'subject')->widget(\yii2mod\chosen\ChosenSelect::className(),[
                    'items' => [
                        'first' => 'First',
                        'second' => 'Second'
                    ],
                ]); 

2) Usage without a model

   echo \yii2mod\chosen\ChosenSelect::widget([
        'name'  => 'select',
        'items' => BooleanEnum::listData(),
        'options' => [
            'width' => '95%'
        ]
    ]);

Select Options

You can find them on the options page

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

  • 1.131 December 2016
  • 1.013 May 2016

Comments



1.1 is the latest of 2 releases



MIT license
Stats
7 github stars & 6 github forks
0 downloads in the last day
341 downloads in the last 30 days
3585 total downloads