angular-drag-and-drop-lists
Advanced tools
Changelog
2.0.0 (2016-12-25)
There have been some major changes to how the directive works internally, although these changes should not affect users of the library.
getBoundingClientRect
. As a result, developers are no longer required to have position: relative
on the list and list item elements.Text
in non-standard comform browsers. As a result, dragged elements can no longer be dropped into arbitrary input fields. More details on how this works can be found in the design document. Breaking change: As mime types are used, all dnd-type attributes are automatically converted to lower case.Changelog
1.4.0 (2016-02-06)
dnd-nodrag
, so that a dnd-draggable
can only be dragged by using certain handle elements. Demodnd-drop
callback can now return true to signalize that it will take care of inserting the dropped element itself. dnd-list
will then no longer insert any elements into the list, but will still call the dnd-inserted
callback.dnd-draggable
with dnd-disable-if
, the user was still able to trigger a drag of that element by selecting some text inside the element. (issue #159)dragenter
event, although there doesn't seem to be any browser that enforces this. (issue #118)Changelog
1.3.0 (2015-08-20)
dnd-dragend
, dnd-canceled
and dnd-inserted
.dnd-list
elements can have custom elements by creating a child element with dnd-placeholder
class. This is useful for cases where a simple li
element is not sufficient.dnd-draggable
to prevent dragging certain areas. This is useful for input elements inside the draggable or creating handle elements.selectstart
event is no longer cancelled.dnd-selected
attribute is present.dnd-moved
callback, and therefore remove items accidentially. (issue #21)