2017 © Pedro Peláez
 

yii2-extension yii2-sortable

Create sortable lists and grids using HTML5 drag and drop API for Yii 2.0.

image

kartik-v/yii2-sortable

Create sortable lists and grids using HTML5 drag and drop API for Yii 2.0.

  • Monday, July 30, 2018
  • by kartik-v
  • Repository
  • 3 Watchers
  • 36 Stars
  • 322,861 Installations
  • JavaScript
  • 21 Dependents
  • 0 Suggesters
  • 19 Forks
  • 6 Open issues
  • 6 Versions
  • 12 % Grown

The README.md

Krajee Logo
yii2-sortable
Donate

Stable Version Unstable Version License Total Downloads Monthly Downloads Daily Downloads, (*1)

A Yii 2.0 widget that allows you to create sortable lists and grids and manipulate them using simple drag and drop. It is based on the lightweight html5sortable jQuery plugin, which uses native HTML5 API for drag and drop. It is a leaner alternative for the JUI Sortable plugin and offers very similar functionality. The yii2-sortable widget offers these features:, (*2)

  • Less than 1KB of javascript used (minified and gzipped).
  • Built using native HTML5 drag and drop API.
  • Supports both list and grid style layouts.
  • Similar API and behaviour to jquery-ui sortable plugin.
  • Works in IE 5.5+, Firefox 3.5+, Chrome 3+, Safari 3+ and, Opera 12+.

Demo

You can see detailed documentation on usage of the extension., (*3)

Installation

The preferred way to install this extension is through composer., (*4)

NOTE: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json., (*5)

Either run, (*6)

$ php composer.phar require kartik-v/yii2-sortable "@dev"

or add, (*7)

"kartik-v/yii2-sortable": "@dev"

to the require section of your composer.json file., (*8)

Usage

Sortable

use kartik\sortable\Sortable;
echo Sortable::widget([
    'type' => Sortable::TYPE_LIST,
    'items' => [
        ['content' => 'Item # 1'],
        ['content' => 'Item # 2'],
        ['content' => 'Item # 3'],
    ]   
]); 

License

yii2-sortable is released under the BSD-3-Clause License. See the bundled LICENSE.md for details., (*9)

The Versions

30/07 2018

dev-master

9999999-dev https://github.com/kartik-v/yii2-sortable

Create sortable lists and grids using HTML5 drag and drop API for Yii 2.0.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 jquery bootstrap range widget sortable

17/06 2015

v1.2.0

1.2.0.0 https://github.com/kartik-v/yii2-sortable

Create sortable lists and grids using HTML5 drag and drop API for Yii 2.0.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 jquery bootstrap range widget sortable

10/11 2014

1.1.0.x-dev

1.1.0.9999999-dev https://github.com/kartik-v/yii2-sortable

Create sortable lists and grids using HTML5 drag and drop API for Yii 2.0.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 jquery bootstrap range widget sortable

10/11 2014

v1.1.0

1.1.0.0 https://github.com/kartik-v/yii2-sortable

Create sortable lists and grids using HTML5 drag and drop API for Yii 2.0.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 jquery bootstrap range widget sortable

05/10 2014

1.0.0.x-dev

1.0.0.9999999-dev https://github.com/kartik-v/yii2-sortable

Create sortable lists and grids using HTML5 drag and drop API for Yii 2.0.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 jquery bootstrap range widget sortable

05/10 2014

v1.0.0

1.0.0.0 https://github.com/kartik-v/yii2-sortable

Create sortable lists and grids using HTML5 drag and drop API for Yii 2.0.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 jquery bootstrap range widget sortable