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

feat(Table): handle meta.class on th and td #2790

Merged
merged 5 commits into from
Dec 2, 2024

Conversation

clopezpro
Copy link
Contributor

@clopezpro clopezpro commented Nov 27, 2024

…meta

πŸ”— Linked issue

Resolves #2762

❓ Type of change

use custom class in th tag

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

According to the Tanstack documentation, add the ClassName attribute, to add a custom class to the th tag https://tanstack.com/table/v8/docs/api/core/column-def#meta

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link
Member

@benjamincanac benjamincanac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why className, this is not React πŸ˜…

@clopezpro
Copy link
Contributor Author

Why className, this is not React πŸ˜…

Could it soon also be called customClass?
image

Copy link
Member

Just class :)

Copy link
Member

@benjamincanac benjamincanac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be nice to do the same for cells. Also, could you fix the CI?

@benjamincanac benjamincanac changed the title Custom className in th tag feat(Table): handle class on th Nov 28, 2024
Copy link

pkg-pr-new bot commented Nov 28, 2024

npm i https://pkg.pr.new/@nuxt/ui@2790

commit: 5c0d200

@benjamincanac benjamincanac changed the title feat(Table): handle class on th feat(Table): handle meta.class on th and td Dec 2, 2024
@benjamincanac benjamincanac merged commit 004a577 into nuxt:v3 Dec 2, 2024
2 checks passed
@benjamincanac
Copy link
Member

Thanks 😊

@benjamincanac benjamincanac added the v3 #1289 label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 #1289
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v3] Custom class to the tag <th>
2 participants