feat(Table): conditionally apply classes to tr and td (#3866)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
andr35
2025-04-22 21:14:57 +02:00
committed by GitHub
parent d710141a1b
commit 80dfa88ea4
2 changed files with 41 additions and 7 deletions

View File

@@ -105,6 +105,13 @@ highlights:
When rendering components with `h`, you can either use the `resolveComponent` function or import from `#components`.
::
### Meta
Use the `meta` prop as an object ([TableMeta](https://tanstack.com/table/latest/docs/api/core/table#meta)) to pass properties like:
- `class`:
- `tr`: [The classes to apply to the `tr` element.]{class="text-muted"}
### Loading
Use the `loading` prop to display a loading state, the `loading-color` prop to change its color and the `loading-animation` prop to change its animation.