My display of items is done using bootstrap vue b-table:
<b-table striped bordered :tbody-tr-class="row_class" :fields="fields" :items="items" head-variant="light" class="o-list"
thead-class="o-gradient-header"
@row-selected="onRowSelected" selectable
no-local-sorting @sort-changed="change_sort" :sort-by="list_options.sort"
:sort-desc="list_options.order==='desc'">
...
</b-table>
A function call needs to be made to change the background color of each cell:
row_class(item) {
// Implement necessary conditionals here
// Return CSS class string
}
The issue is that instead of changing only the style of the cell, it's affecting the whole row. Is there a way to individually modify the background color of each cell?