MASANORI IWATA

Project manager / Front end engineer

sortable.js

Fork me on GitHub

Features

  • Simple and fast
  • Supports touch devices
  • Auto scrolling
  • Responsive designs
  • High performance
  • Use Babel
  • No jQuery

Options

List including all options.

containerId

Type: String
Default: 'sortable'

draggingClass

Type: String
Default: 'dragging'

draggableClass

Type: String
Default: 'draggable'

itemAnimationMargin

Type: Number
Default: 0

animateSpeed

Type: Number
Default: 150

sortableStartTime

Type: Number
Default: 300

scrollSpeedLevel

Type: Number
Default: 10

onDrag

Type: Function
Default: null

onDragged

Type: Function
Default: null

onSort

Type: Function
Default: null

onSorted

Type: Function
Default: null

onRefreshed

Type: Function
Default: null

onInitialize

Type: Function
Default: null

Events

Confirm the operation of the callback function.

onDrag: on
onDragged: on
onSort: on
onSorted: on
onRefreshed: on
onInitialize: on

Example

As a Todo list.

License

© 2016 - 2017 MASANORI IWATA

Released under the MIT license
http://opensource.org/licenses/mit-license.php

See also