Replies: 2 comments 2 replies
-
Did you figure it out? I'm having the same issue |
Beta Was this translation helpful? Give feedback.
1 reply
-
you can just use CSS.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having a good deal of trouble trying to figure out how to alternate background colors for the rows in my v-data-table. Here is what I have tried so far...
A lot of searching keeps coming up with adding
:item-class=""
to the data-table itself, but that does nothing and I also don't see that mentioned as a prop in the Labs api documentation. Could it have been possibly removed in the latest release?After that I tried styling the
<tr>
itself and that doesn't take. Interestingly though, a style on the<td>
works as expected. Here's my template code:As you can see I tried both the
<tr>
and<tbody>
but neither take. And actually the<tbody>
breaks the entire table.I also tried wrapping the row in a
<div>
and while this does actually apply the style, it breaks the whole table format. I'm kind of stumped as where to go from here. Am I going to have to put that style onto every<td>
in order to achieve the desired result? I know that will work, but it feels hacky and it feels like there should be a really easy way to do this.Beta Was this translation helpful? Give feedback.
All reactions