Skip to content

Commit 65a4e3e

Browse files
authored
README: update header/footer example
1 parent 32ed3b7 commit 65a4e3e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,17 @@ import { Sortable } from "sortablejs-vue3";
4747
>
4848
<-- The Header and Footer templates below are optional -->
4949
<template #header>
50-
<h1>SortableJS Vue3 Demo</h1>
50+
<header>
51+
<h1>SortableJS Vue3 Demo</h1>
52+
</header>
5153
</template>
5254
<template #item="{element, index}">
5355
<div class="draggable" :key="element.id">
5456
{{ element.name }}
5557
</div>
5658
</template>
5759
<template #footer>
58-
<div class="draggable">A footer</div>
60+
<footer class="draggable">A footer</footer>
5961
</template>
6062
</Sortable>
6163
</template>

0 commit comments

Comments
 (0)