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
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ import { Sortable } from 'sortablejs-vue3'
42
42
<Sortable
43
43
:list="elements"
44
44
item-key="id"
45
+
tag="div"
45
46
:options="options"
46
47
>
47
48
<template #item="{element, index}">
@@ -55,6 +56,8 @@ import { Sortable } from 'sortablejs-vue3'
55
56
56
57
4. The `list` and `item-key` props are necessary. The `options` prop is an object that can contain any SortableJS option. You can find a full list of them here: https://github.com/SortableJS/Sortable#options
57
58
59
+
5. The `tag` prop is an optional prop, it's the HTML node type of the element that creates an outer element for the included slot. the default value is `div`
60
+
58
61
### Events
59
62
You can listen to Sortable events by adding the listeners to the `Sortable` component. For example:
0 commit comments