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
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -104,10 +104,10 @@ There are already a number of great Drag & Drop libraries out there (for instanc
104
104
| pressDelay | Number |`0`| If you'd like elements to only become sortable after being pressed for a certain time, change this property. A good sensible default value for mobile is `200`. Cannot be used in conjunction with the `distance` prop. |
105
105
| pressThreshold | Number |`5`| Number of pixels of movement to tolerate before ignoring a press event. |
106
106
| distance | Number |`0`| If you'd like elements to only become sortable after being dragged a certain number of pixels. Cannot be used in conjunction with the `pressDelay` prop. |
107
-
| shouldCancelStart | Function |[Function](https://github.com/clauderic/react-sortable-hoc/blob/master/src/SortableContainer/index.js#L48)| This function get's 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`. |
108
-
| onSortStart | Function || Callback that get's invoked when sorting begins. `function({node, index, collection}, event)`|
109
-
| onSortMove | Function || Callback that get's invoked during sorting as the cursor moves. `function(event)`|
110
-
| onSortEnd | Function || Callback that get's invoked when sorting ends. `function({oldIndex, newIndex, collection}, e)`|
107
+
| 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`.|
108
+
| onSortStart | Function || Callback that is invoked when sorting begins. `function({node, index, collection}, event)`|
109
+
| onSortMove | Function || Callback that is invoked during sorting as the cursor moves. `function(event)`|
110
+
| onSortEnd | Function || Callback that is invoked when sorting ends. `function({oldIndex, newIndex, collection}, e)`|
111
111
| useDragHandle | Boolean |`false`| If you're using the `SortableHandle` HOC, set this to `true`|
112
112
| useWindowAsScrollContainer | Boolean |`false`| If you want, you can set the `window` as the scrolling container |
113
113
| hideSortableGhost | Boolean |`true`| Whether to auto-hide the ghost element. By default, as a convenience, React Sortable List will automatically hide the element that is currently being sorted. Set this to false if you would like to apply your own styling. |
0 commit comments