Home Reference Source
public class | source

SwapAnimation

Extends:

* → SwapAnimation

SwapAnimation plugin adds swap animations for sortable

Constructor Summary

Public Constructor
public

constructor(draggable: Draggable)

SwapAnimation constructor.

Member Summary

Public Members
public

Last animation frame

public

SwapAnimation 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 sorted handler

Public Constructors

public constructor(draggable: Draggable) source

SwapAnimation constructor.

Params:

NameTypeAttributeDescription
draggable Draggable

Draggable instance

Public Members

public lastAnimationFrame: Number source

Last animation frame

Properties:

NameTypeAttributeDescription
lastAnimationFrame Number

public options: Object source

SwapAnimation 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 [onSortableSorted](sortableEvent: SortableSortedEvent) source

Sortable sorted handler

Params:

NameTypeAttributeDescription
sortableEvent SortableSortedEvent