You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,7 @@ There are already a number of great Drag & Drop libraries out there (for instanc
105
105
| shouldCancelStart | Function |[Function](https://github.com/clauderic/react-sortable-hoc/blob/master/src/SortableContainer/index.js#L48)| This function is invoked before sorting begins, and can be used to programatically cancel sorting before it begins. By default, it will cancel sorting if the event target is either an `input`, `textarea`, `select` or `option`. |
106
106
| onSortStart | Function || Callback that is invoked when sorting begins. `function({node, index, collection}, event)`|
107
107
| onSortMove | Function || Callback that is invoked during sorting as the cursor moves. `function(event)`|
108
+
| onSortOver | Function || Callback that get's invoked when moving over an item. `function({index, oldIndex, newIndex, collection}, e)`|
108
109
| onSortEnd | Function || Callback that is invoked when sorting ends. `function({oldIndex, newIndex, collection}, e)`|
109
110
| useDragHandle | Boolean |`false`| If you're using the `SortableHandle` HOC, set this to `true`|
110
111
| useWindowAsScrollContainer | Boolean |`false`| If you want, you can set the `window` as the scrolling container |
0 commit comments