Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pceuropa/yii2-ajax-sort

Yii2 sortable listview Ajax Drag and Drop
https://github.com/pceuropa/yii2-ajax-sort

ajax drag-drop listview sort sortable yii2-widgets

Last synced: 2 months ago
JSON representation

Yii2 sortable listview Ajax Drag and Drop

Awesome Lists containing this project

README

        

# yii2-ajax-sort
Sorting items -> Drag Drop -> AJAX -> Save

## Instalation

```
composer require pceuropa/yii2-ajax-sort dev-master
```

##Configure
```
use pceuropa\sort\SortWidget;

echo SortWidget::widget([
'image_url' => Url::to('@web/images/'),
'data' => [
['id' => 1, 'image_name' => 'firefox.jpg', 'title' => 'text alternative'],
['id' => 2, 'image_name' => 'opera.jpg'],
['id' => 6, 'title' => 'text element', 'url' => 'https://'],
],
]);

```
[Yii2 sort list widget Demo and info](http://pceuropa.net/yii2-extensions/yii2-ajax-sort)