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
Table row arbitrary classes. #1797
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #1797 +/- ##
=======================================
Coverage 61.04% 61.04%
=======================================
Files 154 154
Lines 2862 2862
Branches 791 791
=======================================
Hits 1747 1747
Misses 800 800
Partials 315 315
Continue to review full report at Codecov.
|
Smart thing to add functions to the existing tbody-tr-class! Pros:
Cons: I don't see any |
I'm wondering if there is a way to determine if the current row is a detail row my RowClass function? I am displaying another table component in the detail so I want to shut off the hover color on the detail row because the detail table has hover as well. |
@amyglock I don't know if it helps, but there is the |
Excuse me, I dont know if this is a right place to ask. When will this feature be available on NPM package? |
I can't reproduce this funcionality with the above code. |
@valisjan this commit is not included yet. I saw they created a new branch "next-release". But it is still not released yet. I think you have to wait, or you can build your own version. |
@minhnhut thanks! |
I try to implement your code and it gives me error with |
I followed the steps , unfortunately it didn't work , it gives me this message |
Merged PR is broken: Invalid prop: type check failed for prop "tbodyTrClass". Expected String, Array, got Function. |
Same issue here, (Invalid prop: type check failed for prop "tbodyTrClass". Expected String, Array, got Function.) |
Well, the branch was merged on May 23, but the latest release is from May 20 (2.0.0-rc.11). |
its mid October already, why bootstrap-vue haven't released the next version? |
Can we have it now? :-D |
in bootstrap-vue with browser i am not found it ?? !! |
How about if you want to apply inline style on each row ? I want to style each row based on color comes from database ? any help ? |
This PR adds a new type for
tbody-tr-class
to allow arbitrary per-item classes. (and closes #1795)