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/cell decorate #1793
Comments
Just found the 'class' property for the fields, so scratch that last line about alignment. |
so, I make this a feature request for your consideration: is it possible to add |
update: The tdClass field property as a function is quite fit to set cell classes, so it seems the only one I miss is to apply classes to the row... |
I can't get tdClass to work as a function in my fields list. If i declare a string it works fine, but not as a function, i get no errors or anything.
|
What version are you using? See my example below |
Hmm maybe it's a version problem then. I'm using nuxt. In my node_modules package.json for bootstrap-vue says: "bootstrap-vue@2.0.0-rc.6" |
Try version |
That worked! I've been debugging this, the last 3 hours :) Thank you very much! |
You're welcome :) |
@cortz if ist ok I close issue )) |
How would one achieve this with scoped css style? I'm on 2.0.0-rc.11 of bootstrap-vue but when I use something like |
tl;dr how can I assign arbitrary CSS classes to any row (or cell)?
While working on tables, I need to show some different states for rows, they can be:
Selected (on/off) and/or Active (on/off), Active and not Selected being the default display.
In my previous implementation (not with bootstrap-vue), I used a background stripped image to show an "inactive" state, and a semi-transparent background color for "selected" state.
I can "hack" the _rowVariant property, misusing 3 of them to show the 3 visible states (active/selected, inactive, inactive/selected) and override the CSS, but it doesn't look so great an idea, and will get out of hands should I need another state(s), like out-of-stock.
I checked and while I can use anything as variant (like "active-selected-out"), it is at best an undocumented feature that could break any time, and a CSS nightmare, even with SCSS.
Another thing quite common is to right align numbers, or center align status data. How can I tell that a specific column is to be right aligned (that is, without hijacking the variant prop in fields)?The text was updated successfully, but these errors were encountered: