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: ISSUE_TEMPLATE.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,15 @@
1
-
##Hi, this project very much requires the maintainer, if you have a chewing and appropriate skills, please [contact me](mailto:ibn@rubaxa.org?subject=Sortable%20vs.%20Maintainer)!
1
+
#### Problem:
2
2
3
3
4
-
---
5
4
5
+
#### JSBin/JSFiddle demonstrating the problem:
6
+
7
+
8
+
---
6
9
Before you create an issue, check it:
7
10
8
-
1. Try [master](https://github.com/RubaXa/Sortable/tree/master/)-branch, perhaps the problem has been solved;
9
-
2.[Use the search](https://github.com/RubaXa/Sortable/search?q=problem), maybe already have an answer;
11
+
1. Try [master](https://github.com/SortableJS/Sortable/tree/master/)-branch, perhaps the problem has been solved;
12
+
2.[Use the search](https://github.com/SortableJS/Sortable/search?q=problem), maybe we already have an answer;
10
13
3. If not found, create an example on [jsbin.com (draft)](http://jsbin.com/vojixek/edit?html,js,output) and describe the problem.
*[Swap Thresholds and Direction](https://github.com/SortableJS/Sortable/wiki/Swap-Thresholds-and-Direction) (December 2, 2018)
37
38
*[Sortable v1.0 — New capabilities](https://github.com/SortableJS/Sortable/wiki/Sortable-v1.0-—-New-capabilities/) (December 22, 2014)
38
39
*[Sorting with the help of HTML5 Drag'n'Drop API](https://github.com/SortableJS/Sortable/wiki/Sorting-with-the-help-of-HTML5-Drag'n'Drop-API/) (December 23, 2013)
39
40
40
-
41
41
<br/>
42
42
43
43
### Install
@@ -79,7 +79,7 @@ You can use any element for the list and its elements, not just `ul`/`li`. Here
dataTransfer.setData('Text', dragEl.textContent); // `dataTransfer` object of HTML5 DragEvent
112
119
},
@@ -183,7 +190,7 @@ To drag elements from one list into another, both lists must have the same `grou
183
190
You can also define whether lists can give away, give and keep a copy (`clone`), and receive elements.
184
191
185
192
* name: `String` — group name
186
-
* pull: `true|false|["foo", "bar"]|'clone'|function` — ability to move from the list. `clone` — copy the item, rather than move. Or an array of group names which the elements may be put in.
193
+
* pull: `true|false|["foo", "bar"]|'clone'|function` — ability to move from the list. `clone` — copy the item, rather than move. Or an array of group names which the elements may be put in. Defaults to `true`.
187
194
* put: `true|false|["baz", "qux"]|function` — whether elements can be added from other lists, or an array of group names from which elements can be taken.
188
195
* revertClone: `boolean` — revert cloned element to initial position after moving to a another list.
Direction that the Sortable should sort in. Can be set to `'vertical'`, `'horizontal'`, or a function, which will be called whenever a target is dragged over. Must return `'vertical'` or `'horizontal'`.
- to:`HTMLElement` — list, in which moved element.
@@ -576,6 +638,7 @@ Link to the active instance.
576
638
* 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
577
639
* clone(el`:HTMLElement`)`:HTMLElement` — create a deep copy of the set of matched elements
578
640
* toggleClass(el`:HTMLElement`, name`:String`, state`:Boolean`) — add or remove one classes from each element
641
+
* detectDirection(el`:HTMLElement`)`:String` — automatically detect the direction of the element as either `'vertical'` or `'horizontal'`
0 commit comments