yii2-ajax-sort Vertical list of elements, drag and drop to sort list, every event drop item - ajax send request - Param array.

  1. Requirements
  2. Installation
  3. Usage
  4. Resources

Requirements

Yii2

Installation

composer require pceuropa/yii2-ajax-menu dev-master

Usage

use yii\helpers\Url;
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' => 3, 'image_name'  => 'chrome.jpg'],
		['id' => 4, 'image_name'  => 'ie.jpg'],
		['id' => 5, 'image_name'  => 'safari.jpg'],
		['id' => 6, 'title'  => 'text element', 'url' => 'https://'], // no image, only text
	], 
]); 

Resources

0 0
1 follower
0 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: pceuropa
Created on: Jan 7, 2017
Last updated: a year ago

Related Extensions