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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,10 @@ More code examples are available [here](https://github.com/clauderic/react-sorta
102
102
| useWindowAsScrollContainer | Boolean |`false`| If you want, you can set the `window` as the scrolling container |
103
103
| 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. |
104
104
| lockToContainerEdges | Boolean |`false`| You can lock movement of the sortable element to it's parent `SortableContainer`|
105
+
| lockOffset |`OffsetValue`\*\|[`OffsetValue`\*, `OffsetValue`\*]|`"50%"`| When `lockToContainerEdges` is set to `true`, this controls the offset distance between the sortable helper and the top/bottom edges of it's parent `SortableContainer`. Percentage values are relative to the height of the item currently being sorted. If you wish to specify different behaviours for locking to the *top* of the container vs the *bottom*, you may also pass in an `array` (For example: `["0%", "100%"]`). |
106
+
107
+
\*`OffsetValue` is either a finite `Number` or a `String` made-up of a number and a unit (`px` or `%`).
0 commit comments