Yii2 sortable listview Ajax Drag and Drop
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets/js
views
.gitignore
LICENSE
README.md
SortAsset.php
SortWidget.php
composer.json

README.md

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