Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VDataTable): hide default body #19844

Merged
merged 1 commit into from
May 21, 2024
Merged

fix(VDataTable): hide default body #19844

merged 1 commit into from
May 21, 2024

Conversation

MajesticPotatoe
Copy link
Member

Description

Brings back ability to replace the default tbody
resolves #18854

Markup:

<template>
  <v-data-table
    hide-default-body
    :items="[
      { id: 1, text: '1' },
      { id: 2, text: '2' },
    ]"
  >
    <template #tbody="{ items }">
      <tbody>
        <tr v-for="item in items" :key="item.id">
          <td>{{ item.id }}</td>
          <td>{{ item.text }}</td>
        </tr>
      </tbody>
    </template>
  </v-data-table>
</template>

@MajesticPotatoe MajesticPotatoe added T: bug Functionality that does not work as intended/expected C: VDataTable VDatatable labels May 20, 2024
@MajesticPotatoe MajesticPotatoe self-assigned this May 20, 2024
@johnleider johnleider added this to the v3.6.x milestone May 21, 2024
@johnleider johnleider merged commit 2f8ee0f into master May 21, 2024
19 checks passed
@johnleider johnleider deleted the fix/hide-default-body branch May 21, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VDataTable VDatatable T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report][3.4.6] VDataTable - Using #thead and #tbody slots does not remove VDataTable thead or tbody
2 participants