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: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ export default {
46
46
items:generateItems(50, i=> ({ id: i, data:"Draggable "+ i }))
47
47
};
48
48
},
49
-
methods: {
49
+
methods: {
50
50
onDrop(dropResult) {
51
51
this.items=applyDrag(this.items, dropResult);
52
52
}
@@ -67,7 +67,7 @@ Properties define the visual behaviour of the library:
67
67
| Property | Type | Default | Description |
68
68
| - | :-: | :-: | - |
69
69
|:orientation| string |`vertical`| Orientation of the container. Can be **horizontal** or **vertical**. |
70
-
| :behaviour | string | `move` | Property to describe weather the dragging item will be moved or copied to target container. Can be **move** or **copy**.
70
+
| :behaviour | string | `move` | Property to describe weather the dragging item will be moved or copied to target container. Can be **move** or **copy** or **drop-zone** or **contain**.
| :group-name | string | `undefined` | Draggables can be moved between the containers having the same group names. If not set container will not accept drags from outside. This behaviour can be overriden by shouldAcceptDrop function. See below.
73
73
| :lock-axis | string | `undefined` | Locks the movement axis of the dragging. Possible values are **x**, **y** or **undefined**.
@@ -79,6 +79,7 @@ Properties define the visual behaviour of the library:
79
79
| :drag-class | string | `undefined` | Class to be added to the ghost item being dragged. The class will be added after it's added to the DOM so any transition in the class will be applied as intended.
80
80
| :drop-class | string | `undefined` | Class to be added to the ghost item just before the drop animation begins.
81
81
|:remove-on-drop-out|boolean|`undefined`|When set true onDrop will be called with a removedIndex if you drop element out of any relevant container|
82
+
|:drop-placeholder|boolean,object|`undefined`|Options for drop placeholder. **className**, **animationDuration**, **showOnTop**|
0 commit comments