Sortable http://rubaxa.github.io/Sortable

The JavaScript library for modern browsers and touch devices. No jQuery.

Base

  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5

Inline

  • Item 1
  • Item 2
  • Item 3
  • Item 4

Images

Drag handle

  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5

Usage


require(['px-libs/Sortable'], function(Sortable) {
  ...
});
        

Usage

To use Sortable.js plugin, you need to include the next scripts:


<script src="path/to/js/libs/Sortable.js"></script>
<script src="path/to/js/libs/angular-legacy-sortable.js"></script>
        

Then inject the plugin into your angular application:

angular.module('yourApp', ['ng-sortable']);

Alternatively, you can include Sortable.js plugin using ocLazyLoad plugin:


$ocLazyLoad.load([
  {
    serie: true,
    name: 'ng-sortable',
    files: [
      'path/to/js/libs/Sortable.js',
      'path/to/js/libs/angular-legacy-sortable.js',
    ],
  },
]);