uran1980 / yii2-chosen-select
An Yii2 chosen select extension based on Chosen jQuery plugin.
Package info
github.com/uran1980/yii2-chosen-select
Language:HTML
Type:yii2-extension
pkg:composer/uran1980/yii2-chosen-select
0.0.1
2015-03-07 00:00 UTC
Requires
- yiisoft/yii2: ~2
This package is auto-updated.
Last update: 2026-03-13 07:25:57 UTC
README
An Yii2 chosen select extension based on Chosen jQuery plugin.
What is Chosen?
Chosen is a jQuery plugin that makes long, unwieldy select boxes much more user-friendly.
Installation
Composer
The preferred way to install this extension is through Composer.
Either run
php composer.phar require uran1980/yii2-chosen-select "dev-master"
or add
"uran1980/yii2-chosen-select": "dev-master"
to the require section of your composer.json
Usage
To activate this widget add this line to you view or layout:
<?php echo uran1980\yii\widgets\chosen\ChosenSelect::widget(); ?>
or add as dependensy in you AssetBundle.php:
namespace frontend\assets; class YourAppAsset extends \yii\web\AssetBundle { ... public $depends = [ 'uran1980\yii\widgets\chosen\ChosenSelectAsset', ... ]; }
Author
Ivan Yakovlev, e-mail: uran1980@gmail.com