Skip to content

Commit 46a3986

Browse files
committed
Intermediate version before release + master
2 parents c8363dc + a70d2c9 commit 46a3986

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ var sortabel = new Sortable(el, {
5252
onStart: function (/**Event*/evt) { /* dragging */ },
5353
onEnd: function (/**Event*/evt) { /* dragging */ },
5454

55-
// Element is added to the list
55+
// Element is dropped into the list from another list
5656
onAdd: function (/**Event*/evt){
5757
var itemEl = evt.item; // dragged HTMLElement
5858
itemEl.from; // previous list
5959
},
6060

61-
// Changed sorting in list
61+
// Changed sorting within list
6262
onUpdate: function (/**Event*/evt){
6363
var itemEl = evt.item; // dragged HTMLElement
6464
},
@@ -68,7 +68,7 @@ var sortabel = new Sortable(el, {
6868
var itemEl = evt.item; // dragged HTMLElement
6969
},
7070

71-
// The element is removed from the list
71+
// Element is removed from the list into another list
7272
onRemove: function (/**Event*/evt){
7373
var itemEl = evt.item; // dragged HTMLElement
7474
},
@@ -79,13 +79,13 @@ var sortabel = new Sortable(el, {
7979
});
8080
```
8181

82-
8382
---
8483

8584

8685
#### `handle` option
87-
88-
To make list items draggable, Sortable disables text selection by the user. That's not always desirable. To allow text selection, define a drag handler, which is an area of every list element that allows it to be dragged around.
86+
To make list items draggable, Sortable disables text selection by the user.
87+
That's not always desirable. To allow text selection, define a drag handler,
88+
which is an area of every list element that allows it to be dragged around.
8989

9090
```js
9191
var sortable = new Sortable(el, {
@@ -110,7 +110,9 @@ var sortable = new Sortable(el, {
110110
---
111111

112112

113-
### `group` option
113+
#### `group` option
114+
To drag elements from one list into another, both lists must have the same `group` value.
115+
You can also define whether lists can give away, give and keep a copy (`clone`), and receive elements.
114116

115117
* name:`string` — group name
116118
* pull:`true|false|'clone'` — ability to move from the list. `clone` — cloning drag item when moving from the list.
@@ -119,6 +121,7 @@ var sortable = new Sortable(el, {
119121

120122
---
121123

124+
122125
<a name="ng"></a>
123126
### Support AngularJS
124127
Include [ng-sortable.js](ng-sortable.js)

0 commit comments

Comments
 (0)