2017 © Pedro Peláez
 

yii2-extension yii2-select2-widget

The select2 widget for Yii framework.

image

icron/yii2-select2-widget

The select2 widget for Yii framework.

  • Saturday, December 24, 2016
  • by icron
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % 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

24/12 2016

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