2017 © Pedro Peláez
 

yii2-extension yii2-select2-widget

The select2 widget for Yii framework.

image

vova07/yii2-select2-widget

The select2 widget for Yii framework.

  • Sunday, April 5, 2015
  • by vova07
  • Repository
  • 3 Watchers
  • 9 Stars
  • 35,994 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 8 Forks
  • 6 Open issues
  • 4 Versions
  • 5 % Grown

The README.md

Yii2 select2 widget.

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

Select2 widget is a wrapper of Select2 for Yii 2 framework., (*2)

Install

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist vova07/yii2-select2-widget "*"

or add, (*5)

"vova07/yii2-select2-widget": "*"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply use it in your code by:, (*7)

use vova07\select2\Widget;

echo $form->field($model, 'field')->widget(Widget::className(), [
    'options' => [
        'multiple' => true,
        'placeholder' => 'Choose item'
    ],
    'settings' => [
        'width' => '100%',
    ],
    'items' => [
        'item1',
        'item2',
        ...
    ],
    'events' => [
        'select2-open' => 'function (e) { log("select2:open", e); }',
        'select2-close' => new JsExpression('function (e) { log("select2:close", e); }')
        ...
    ]
]);

Testing

bash $ phpunit, (*8)

Further Information

Please, check the Select2 documentation for further information about its configuration options., (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

Credits

License

The BSD License (BSD). Please see License File for more information., (*11)

The Versions

05/04 2015

dev-master

9999999-dev https://github.com/vova07/yii2-select2-widget

The select2 widget for Yii framework.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 yii yii 2 widget select select2 select 2

05/04 2015

0.1.2

0.1.2.0 https://github.com/vova07/yii2-select2-widget

The select2 widget for Yii framework.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension yii2 yii yii 2 widget select select2 select 2

26/01 2015

0.1.1

0.1.1.0

The select2 widget for Yii framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 yii 2 widget select select2 select 2

09/09 2014

0.1.0

0.1.0.0

The select2 widget for Yii framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 yii 2 widget select select2 select 2