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: plugins/OnSpill/README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,17 @@ This file contains two seperate plugins, RemoveOnSpill and RevertOnSpill. They c
6
6
---
7
7
8
8
9
+
### Mounting
10
+
```js
11
+
import { Sortable, OnSpill } from'sortablejs';
12
+
13
+
Sortable.mount(OnSpill);
14
+
```
15
+
16
+
17
+
---
18
+
19
+
9
20
## RevertOnSpill Plugin
10
21
This plugin, when enabled, will cause the dragged item to be reverted to it's original position if it is spilled (ie. it is dropped outside of a valid Sortable drop target)
0 commit comments