- enhanced distance calculation algorithm while repositioning
sv-copy
onsv-part
menaing that elementes dragged out of this container will be copied instead of movedis-grid
onsv-part
meaning the elements on this container are aligned horizontally (multiline possible)sv-no-revert
onsv-part
meaning the elements dropped into this container will not be animatedsv-center
onsv-part
to set how the "center" of the container (for dropping into empty container purposes) should be comprehended (more in readme)sv-handle-disabled
onsv-element
/sv-handle
- to disable an element from dragging
- reveted a PR that introduced a bug #79
- merged some of the pull requests
- bug fixes
- bug fixes
- touch support
- fixed a bug where
$digest
hasn't been called aftersv-on-start
handler - added a
sv-on-stop
optional attribute. Function bound there will be called when dragging ended regardless of the fact whether elements have been reordered or not
- fixed a bug where nothing within an element without handle could have been clicked
You can now use these optional attributes on the element with sv-root
:
sv-on-sort
- The expression passed as a value of that attribute will be evaluated when elements order has changed after sorting. Several parameters can be injected there like:sv-on-sort="foo($item, $partFrom, $partTo, $indexFrom, $indexTo)"
where:$item
is the item in model which has been moved$partFrom
is the part from which the $item originated$partTo
is the part to which the $item has been moved$indexFrom
is the previous index of the $item in $partFrom$indedTo
is the index of the $item in $partTo
sv-on-start
- The expression passed as a value of that attribute will be evaluated when a user starts moving an element. Several parameters can be injected there like:sv-on-start="bar($item, $part, $index, $helper)"
where:$item
is the item in model which started being moved$part
is the part from which the $item originates$index
is the index of the $item in $part$helper
is the jqLite/jQuery object of an element that is being dragged around
- You can now listen for resorting. An
sv-on-sort
attribute can be now placed on an element withsv-root
. The expression passed as a value of that attribute will be evaluated when elements order has changed after sorting.
- source element for sorting is now detached from DOM instead of giving him
display: none
- Fixed the issue with helper styles
- Dropped the need for the browser to support pointer-events CSS property
- Added the project to the bower registy, it is available to download via
bower install angular-sortable-view
- Added support for custom placeholders
- Better containment handling
- Bug fixes
- BREAKING CHANGE: the module name is now
angular-sortable-view
- Added support for empty lists
- Added support for custom helpers
- Support for setting a containment
- Support for multiple sortable lists connected with each other
- Support for specifying a handle element