Skip to content

SoftCommerce/yii2-chosen-select

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chosen Select Widget for Yii 2

  • Chosen Select Widget based on Chosen jQuery plugin chosen

Usage

  1. Usage with ActiveForm and model
   echo $form->field($model, 'subject')->widget(\softcommerce\chosen\ChosenSelect::className(),[
                    'items' => [
                        'first' => 'First',
                        'second' => 'Second'
                    ],
                ]); 
  1. Usage without a model
   echo \softcommerce\chosen\ChosenSelect::widget([
        'name'  => 'select',
        'items' => BooleanEnum::listData(),
        'options' => [
            'width' => '95%'
        ]
    ]);

Select Options

You can find them on the options page

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%