2017 © Pedro PelĂĄez
 

yii2-extension yii2-materialize-select2

Select2 Widget for Yii 2 with Materialize styles

image

yii-ui/yii2-materialize-select2

Select2 Widget for Yii 2 with Materialize styles

  • Wednesday, July 4, 2018
  • by cmoeke
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • CSS
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Yii UI Select2 Widget for Yii 2 with Materialize styles

Latest Stable Version Total Downloads Maintainability Yii2 License, (*1)

This is an Yii framework 2.0 widget of the Select2 replacement for select boxes with styles for the Materialize CSS Framework., (*2)

Installation

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

Either run, (*4)

php composer.phar require yii-ui/yii2-materialize-select2

or add, (*5)

"yii-ui/yii2-materialize-select2": "~1.1.0"

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

Usage

as active form element:, (*7)

use yiiui\yii2materializeselect2\Select2:

echo $form->field($model, 'attribute')->widget(Select2::class, [
    'items' => [1 => 'Apple', 2 => 'Banana'],
    'options' => [
        'placeholder' => 'Select your favourite',
    ],
    'clientOptions' => [
        'allowClear' => true
    ],
]);

or as widget:, (*8)

Select2::widget([
    'name' => 'input-name',
    'value' => 2,
    'items' => [1 => 'Apple', 2 => 'Banana'],
    'options' => [
        'placeholder' => 'Select your favourite',
    ],
    'clientOptions' => [
        'allowClear' => true
    ],
]);

More Examples will be added soon at https://www.yii-ui.com/yii2-materialize-select2. For plugin configuration see Select2 Documentation., (*9)

Documentation

Documentation will be added soon at https://www.yii-ui.com/yii2-materialize-select2., (*10)

License

yii2-materialize-select2 is released under the MIT License. See the LICENSE.md for details., (*11)

The Versions

04/07 2018

dev-master

9999999-dev https://www.yii-ui.com/yii2-materialize-select2

Select2 Widget for Yii 2 with Materialize styles

  Sources   Download

MIT

The Requires

 

by Christoph Möke

plugin extension yii2 jquery form ui widget select2 dropdown materialize yii-ui

04/07 2018

v1.1.2

1.1.2.0 https://www.yii-ui.com/yii2-materialize-select2

Select2 Widget for Yii 2 with Materialize styles

  Sources   Download

MIT

The Requires

 

by Christoph Möke

plugin extension yii2 jquery form ui widget select2 dropdown materialize yii-ui

14/06 2018

v1.1.1

1.1.1.0 https://www.yii-ui.com/yii2-materialize-select2

Select2 Widget for Yii 2 with Materialize styles

  Sources   Download

MIT

The Requires

 

by Christoph Möke

plugin extension yii2 jquery form ui widget select2 dropdown materialize yii-ui

14/06 2018

v1.1.0

1.1.0.0 https://www.yii-ui.com/yii2-materialize-select2

Select2 Widget for Yii 2 with Materialize styles

  Sources   Download

MIT

The Requires

 

by Christoph Möke

plugin extension yii2 jquery form ui widget select2 dropdown materialize yii-ui

14/06 2018

v1.0.0

1.0.0.0 https://www.yii-ui.com/yii2-materialize-select2

Select2 Widget for Yii 2 with Materialize styles

  Sources   Download

MIT

The Requires

 

by Christoph Möke

plugin extension yii2 jquery form ui widget select2 dropdown materialize yii-ui