import SortAnimation from '@shopify/draggable/src/Plugins/SortAnimation/SortAnimation.js'
SortAnimation
Extends:
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 |
lastElements: *[] |
|
public |
SortAnimation 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 |
[onSortableSort](sortableEvent: SortableSortEvent) Sortable sort handler |
|
private |
[onSortableSorted](sortableEvent: SortableSortedEvent) Sortable sorted handler |
Public Constructors
Public Members
public lastAnimationFrame: Number source
Last animation frame
Properties:
Name | Type | Attribute | Description |
lastAnimationFrame | Number |
public lastElements: *[] source
Public Methods
Private Methods
private [onSortableSort](sortableEvent: SortableSortEvent) source
Sortable sort handler
Params:
Name | Type | Attribute | Description |
sortableEvent | SortableSortEvent |
private [onSortableSorted](sortableEvent: SortableSortedEvent) source
Sortable sorted handler
Params:
Name | Type | Attribute | Description |
sortableEvent | SortableSortedEvent |