Home Reference Source
public class | source

SortAnimation

Extends:

* → SortAnimation

SortAnimation plugin adds sort animation for sortable

Constructor Summary

Public Constructor
public

constructor(draggable: Draggable)

SortAnimation constructor.

Member Summary

Public Members
public

Last animation frame

public
public

SortAnimation options

Method Summary

Public Methods
public

attach()

Attaches plugins event listeners

public

detach()

Detaches plugins event listeners

public

Returns options passed through draggable

Private Methods
private

Sortable sort handler

private

Sortable sorted handler

Public Constructors

public constructor(draggable: Draggable) source

SortAnimation constructor.

Params:

NameTypeAttributeDescription
draggable Draggable

Draggable instance

Public Members

public lastAnimationFrame: Number source

Last animation frame

Properties:

NameTypeAttributeDescription
lastAnimationFrame Number

public lastElements: *[] source

public options: Object source

SortAnimation options

Properties:

NameTypeAttributeDescription
options Object
defaultOptions.duration Number
defaultOptions.easingFunction String

Public Methods

public attach() source

Attaches plugins event listeners

public detach() source

Detaches plugins event listeners

public getOptions(): Object source

Returns options passed through draggable

Return:

Object

Private Methods

private [onSortableSort](sortableEvent: SortableSortEvent) source

Sortable sort handler

Params:

NameTypeAttributeDescription
sortableEvent SortableSortEvent

private [onSortableSorted](sortableEvent: SortableSortedEvent) source

Sortable sorted handler

Params:

NameTypeAttributeDescription
sortableEvent SortableSortedEvent