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

composer require yii2mod/yii2-chosen-select

or add

"yii2mod/yii2-chosen-select": "^1.0"

to the require section of your composer.json.

Usage

1) Usage with ActiveForm and model

echo $form->field($model, 'subject')->widget(\yii2mod\chosen\ChosenSelect::class, [
    '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.220 August 2018
  • 1.131 December 2016
  • 1.013 May 2016

Comments



1.2 is the latest of 3 releases



MIT license
Stats
11 github stars & 7 github forks
96 downloads in the last day
2175 downloads in the last 30 days
16022 total downloads