@shopify/draggable
Advanced tools
Changelog
v1.0.0-beta.7 - 2018-04-28
Changelog
v1.0.0-beta.6 - 2018-04-04
Droppable
Droppable
addContainer
/removeContainer
apiDroppableOver
to DroppableDropped
DroppableOut
to DroppableReturned
console.error
instead of throwing errorChangelog
v1.0.0-beta.5 - 2018-03-02
CONTRIBUTING.md
Announcement
plugin for screen reader supportMirror
pluginscrollableElements
option to Scrollable
pluginsnappableElement
to SnapEvent
Emitter
class for event emitting for draggable8.9.1
to 8.9.4
drag:start
constrainDimensions
option for Mirror
pluginScrollable
AutoScroll
plugin has been renamed to Scrollable
Scrollable
Scrollable
overContainer
property for DragOutContainerEvent
Changelog
v1.0.0-beta.4 - 2018-01-15
Draggable
plugins get exposed statically on Draggable.Plugins
Scrollable
plugin for Draggable, which auto scrolls containers/viewport while draggingyarn watch
task for auto-building the librarysource:original
class option for DraggableDraggable#getDraggableElementsForContainer
method, which returns all draggable elements for a given containerMirrorCreateEvent
, which allows for canceling mirror creationAbstractPlugin
to use as Base class for all Draggable pluginsSortable
sort logic by excluding mirror and original source elements in calculationsDraggable
appendTo
option now uses sources parent element as default, instead of document.body
Draggable
appends over classes after triggering over/out eventsDraggable
appends source into empty containersdestroy()
source:placed
classAbstractEvent#_canceled
to use symbols for private instance variablesChangelog
v1.0.0-beta.3 - 2017-11-01
Sortable
, Swappable
and Droppable
addSensor
to add sensor dynamicallyremoveSensor
to remove a sensor dynamicallyaddPlugin
to add a plugin dynamicallyremovePlugin
to remove a plugin dynamicallyaddContainer
to add a container dynamicallyremoveContainer
to remove a container dynamicallyisDragging
to check if instance is currently draggingsortable:sort
event that can be canceled to prevent sortingswappable:swap
event that can be canceled to prevent swappingSortableSortedEvent
(sortable:sorted
) now returns correct indexesSortableStartEvent
gets fired now100
by default, instead of 0
TouchSensor
now prevents scrolling without preventDefaultMouseSensor
now prevents native elements to start dragging during delayChangelog
v1.0.0-beta.2 - 2017-10-10
appendTo
option for Draggable
originalSource
MouseSensor
classes
optionAbstractEvent
as BaseEvent
8.2.1
to 8.6.0
closest
utils helper