2017 © Pedro Peláez
 

yii2-extension yii2-selectivity

The yii2-selectivity is a Yii 2 wrapper for [selectivity](https://arendjr.github.io/selectivity/). A modular and light-weight selection library for jQuery and Zepto.js.

image

wbraganca/yii2-selectivity

The yii2-selectivity is a Yii 2 wrapper for [selectivity](https://arendjr.github.io/selectivity/). A modular and light-weight selection library for jQuery and Zepto.js.

  • Sunday, November 8, 2015
  • by wbraganca
  • Repository
  • 1 Watchers
  • 5 Stars
  • 2,021 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

yii2-selectivity

Latest Version Software License Total Downloads, (*1)

Install

Via Composer, (*2)

$ composer require wbraganca/yii2-selectivity

or add, (*3)

"wbraganca/yii2-selectivity": "~2.0.1"

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

Usage

On your view file., (*5)


= $form->field($model, 'city', [ 'options' => ['class' => 'selectivity-container form-group'] ])->widget(SelectivityWidget::classname(), [ 'options' => [ 'prompt' => '', ], 'pluginOptions' => [ 'allowClear' => true, 'data' => ['Rio de Janeiro', 'São Paulo'], 'placeholder' => 'No city selected' ] ]) ?>

Displaying the data with appended addon, (*6)

<?= $form->field($model, 'city', [
        'options' => ['class' => 'selectivity-container form-group']
    ])->widget(SelectivityWidget::classname(), [
    'options' => [
        'prompt' => ''
    ],
    'pluginOptions' => [
        'allowClear' => true,
        'data' => ['Rio de Janeiro', 'São Paulo'],
        'placeholder' => 'No city selected'
    ],
    'template' => '<div class="input-group">' .
        '{input}' .
        '<div class="input-group-append">' .
        '<span class="input-group-btn">' .
        '<button class="btn btn-success" type="button">' .
        '<i class="fa fa-plus"></i>' .
        '</button>' .
        '</div>' .
        '</span>' .
        '</div>'
]) ?>

For more options, visit: https://arendjr.github.io/selectivity/#api, (*7)

The Versions

08/11 2015

dev-master

9999999-dev https://github.com/wbraganca/yii2-selectivity

The yii2-selectivity is a Yii 2 wrapper for [selectivity](https://arendjr.github.io/selectivity/). A modular and light-weight selection library for jQuery and Zepto.js.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 multiselect select dropdown wbraganca yii2-selectivity

08/11 2015

1.0.2

1.0.2.0 https://github.com/wbraganca/yii2-selectivity

The yii2-selectivity is a Yii 2 wrapper for [selectivity](https://arendjr.github.io/selectivity/). A modular and light-weight selection library for jQuery and Zepto.js.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 multiselect select dropdown wbraganca yii2-selectivity

07/11 2015

1.0.1

1.0.1.0 https://github.com/wbraganca/yii2-selectivity

The yii2-selectivity is a Yii 2 wrapper for [selectivity](https://arendjr.github.io/selectivity/). A modular and light-weight selection library for jQuery and Zepto.js.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 multiselect select dropdown wbraganca yii2-selectivity

04/07 2015

1.0.0

1.0.0.0 https://github.com/wbraganca/yii2-selectivity

The yii2-selectivity is a Yii 2 wrapper for [selectivity](https://arendjr.github.io/selectivity/). A modular and light-weight selection library for jQuery and Zepto.js.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 multiselect select dropdown wbraganca yii2-selectivity