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
* dispatches sortenter event first time dragged item enters a container;
makes sure original target is sent with the sortenter and sortstart event;
* fix styling issues
* Added containerClass, a css class added when dragitem hover on a container; fires sortenter when a dragitem enters a container; fires dragleave when a dragitem leaves a container.
* Renamed variables and cleaned cde
* Delete package-lock.json
* Revert "Delete package-lock.json"
This reverts commit 802a55f.
* Update package-lock.json
Trying to fix package-lock
* Fixed typo, added comments for better understanding
Co-authored-by: gabriel <gabrielgoller123@gmail.com>
Co-authored-by: Lukas Oppermann <oppermann.lukas@gmail.com>
Fired when a dragitem enters a sortable container.
189
+
190
+
### sortleave
191
+
192
+
Fired when a dragitem leaves a sortable container.
193
+
194
+
186
195
## Options
187
196
188
197
### items
@@ -253,6 +262,15 @@ sortable('.sortable', {
253
262
});
254
263
```
255
264
265
+
### dropTargetContainerClass
266
+
Use `dropTargetContainerClass` option to apply a css Class to the container. The class is added when dragged item enters the container and removed when it leaves it (or is dropped).
267
+
268
+
```javascript
269
+
sortable('.sortable', {
270
+
dropTargetContainerClass:'is-drop-target'// Defaults to false
271
+
});
272
+
```
273
+
256
274
### maxItems
257
275
Use the `maxItems` option to restrict the number of items that can be added to a sortable from a [connected](#connectwith) sortable. `maxItems` should always be combined with the `items` option. Make sure `items` does not match placeholder and other options, so that they are not counted.
0 commit comments