pceuropa/yii2-ajax-sort

Sorting items -> Drag Drop -> AJAX -> Save

Installs: 4 343

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:yii2-extension

1.0.6 2017-01-28 22:49 UTC

This package is auto-updated.

Last update: 2024-11-07 01:54:13 UTC


README

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