- enhanced distance calculation algorithm while repositioning
sv-copyonsv-partmenaing that elementes dragged out of this container will be copied instead of movedis-gridonsv-partmeaning the elements on this container are aligned horizontally (multiline possible)sv-no-revertonsv-partmeaning the elements dropped into this container will not be animatedsv-centeronsv-partto set how the "center" of the container (for dropping into empty container purposes) should be comprehended (more in readme)sv-handle-disabledonsv-element/sv-handle- to disable an element from dragging
- reveted a PR that introduced a bug kamilkp#79
- merged some of the pull requests
- bug fixes
- bug fixes
- touch support
- fixed a bug where
$digesthasn't been called aftersv-on-starthandler - added a
sv-on-stopoptional 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:$itemis the item in model which has been moved$partFromis the part from which the $item originated$partTois the part to which the $item has been moved$indexFromis the previous index of the $item in $partFrom$indedTois 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:$itemis the item in model which started being moved$partis the part from which the $item originates$indexis the index of the $item in $part$helperis the jqLite/jQuery object of an element that is being dragged around
- You can now listen for resorting. An
sv-on-sortattribute 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