2017 © Pedro Peláez
 

yii2-extension yii2-sortablejs

Sortable assert for Yii framework.

image

ereminmdev/yii2-sortablejs

Sortable assert for Yii framework.

  • Monday, February 19, 2018
  • by ereminmdev
  • Repository
  • 0 Watchers
  • 0 Stars
  • 49 Installations
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

yii2-sortablejs

Reorderable drag-and-drop lists widget for Yii framework., (*1)

Based on JavaScript library: https://github.com/RubaXa/Sortable, (*2)

Install

composer require ereminmdev/yii2-sortablejs, (*3)

Documentation

See for clientOptions: https://github.com/RubaXa/Sortable#sortable, (*4)

Use

Insert widget into view:, (*5)

<?= \ereminmdev\yii2\sortablejs\SortableJs::widget([
    'elementSelector' => '.items',
    'clientOptions' => [
        'handle' => '.item-handle',
    ],
]) ?>

or with SortableJsAction action:, (*6)

  • add action to controller:
public function actions()
{
    return [
        'sortable' => [
            'class' => 'ereminmdev\yii2\sortablejs\SortableJsAction',
        ],
    ];
}
  • add widget to view:
<?= SortableJs::widget([
    'elementSelector' => '.items',
    'storeSetAction' => Url::toRoute(['/site/sortable', 'model' => Product::class]),
]) ?>

The Versions

19/02 2018

dev-master

9999999-dev https://bitbucket.org/ereminmdev/yii2-sortablejs

Sortable assert for Yii framework.

  Sources   Download

MIT

The Requires

 

by Michael Eremin

yii2 javascript widget sortable

19/02 2018

v1.0.3

1.0.3.0 https://bitbucket.org/ereminmdev/yii2-sortablejs

Sortable assert for Yii framework.

  Sources   Download

MIT

The Requires

 

by Michael Eremin

yii2 javascript widget sortable

07/02 2018

v1.0.2

1.0.2.0 https://bitbucket.org/ereminmdev/yii2-sortablejs

Sortable assert for Yii framework.

  Sources   Download

MIT

The Requires

 

by Michael Eremin

yii2 javascript widget sortable

31/07 2017

v1.0.1

1.0.1.0 https://bitbucket.org/ereminmdev/yii2-sortablejs

Sortable assert for Yii framework.

  Sources   Download

MIT

The Requires

 

by Michael Eremin

yii2 javascript widget sortable

18/07 2017

v1.0.0

1.0.0.0 https://bitbucket.org/ereminmdev/yii2-sortablejs

Sortable assert for Yii framework.

  Sources   Download

MIT

The Requires

 

by Michael Eremin

yii2 javascript widget sortable