Skip to content

Commit

Permalink
docs(VDataTable): update slot-headers example to use header cells (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyjw authored Oct 29, 2024
1 parent 868b0ab commit dad5163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/src/examples/v-data-table/slot-headers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<template v-slot:headers="{ columns, isSorted, getSortIcon, toggleSort }">
<tr>
<template v-for="column in columns" :key="column.key">
<td>
<th>
<span class="mr-2 cursor-pointer" @click="() => toggleSort(column)">{{ column.title }}</span>
<template v-if="isSorted(column)">
<v-icon :icon="getSortIcon(column)"></v-icon>
</template>
<v-icon v-if="column.removable" icon="$close" @click="() => remove(column.key)"></v-icon>
</td>
</th>
</template>
</tr>
</template>
Expand Down

0 comments on commit dad5163

Please sign in to comment.