import SwapAnimation from '@shopify/draggable/src/Plugins/SwapAnimation/SwapAnimation.js'
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 |
getOptions(): Object Returns options passed through draggable |
Private Methods | ||
private |
[onSortableSorted](sortableEvent: SortableSortedEvent) Sortable sorted handler |
Public Constructors
Public Members
Public Methods
Private Methods
private [onSortableSorted](sortableEvent: SortableSortedEvent) source
Sortable sorted handler
Params:
Name | Type | Attribute | Description |
sortableEvent | SortableSortedEvent |