uran1980/yii2-chosen-select

An Yii2 chosen select extension based on Chosen jQuery plugin.

Installs: 18 508

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 0

Language:HTML

Type:yii2-extension

0.0.1 2015-03-07 00:00 UTC

This package is auto-updated.

Last update: 2024-12-13 04:39:44 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