yii-ui/yii2-rubaxa-sortable

This package is abandoned and no longer maintained. No replacement package was suggested.

Yii2 implementation of the RubaXa Sortable extension. To create reorderable drag-and-drop lists for modern browsers and touch devices.

Installs: 721

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 7

Type:yii2-extension

1.0.0 2016-10-17 09:39 UTC

This package is not auto-updated.

Last update: 2023-08-25 19:56:57 UTC


README

This is an Yii framework 2.0 implementation of the RubaXa Sortable extension. To create reorderable drag-and-drop lists for modern browsers and touch devices.

Latest Stable Version Total Downloads Code Climate Dependency Status Yii2 License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require yii-ui/yii2-rubaxa-sortable

or add

"yii-ui/yii2-rubaxa-sortable": "~1.0.0"

to the require section of your composer.json file.

Usage

use yii-ui\rubaxasortable\Sortable;

echo Sortable::widget([
    'items' => [
        'Item 1',
        ['content' => 'Item2'],
        [
            'content' => 'Item3',
            'options' => ['class' => 'text-danger'],
        ],
    ],
    'containerOptions' => ['class' => 'list-group'],
    'itemOptions' => ['class' => 'list-group-item'],
    'clientOptions' => ['animation' => 0],
]);

More Examples will be added soon at https://www.yii-ui.com/yii2-rubaxa-sortable/examples. For plugin configuration see RubaXa Sortable Documentation.

Documentation

Documentation will be added soon at https://www.yii-ui.com/yii2-rubaxa-sortable/docs.

License

yii2-rubaxa-sortable is released under the BSD 3-Clause License. See the LICENSE.md for details.