handle: ".my-handle", // Restricts sort start click/touch to the specified element
handle: ".my-handle", // Restricts sort start click/touch to the specified element
@ -54,6 +58,8 @@ new Sortable(elem, {
});
});
```
```
---
### Method
### Method
@ -114,6 +120,3 @@ new Sortable(el, {
* closest(el`:HTMLElement`, selector`:String`[, ctx`:HTMLElement`])`:HTMLElement|Null` — for each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree
* closest(el`:HTMLElement`, selector`:String`[, ctx`:HTMLElement`])`:HTMLElement|Null` — for each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree
* toggleClass(el`:HTMLElement`, name`:String`, state`:Boolean`) — add or remove one classes from each element
* toggleClass(el`:HTMLElement`, name`:String`, state`:Boolean`) — add or remove one classes from each element