Answer the question
In order to leave comments, you need to log in
How to change the color of the entire row of bootstrap vue table?
Good afternoon.
Please tell me how to highlight the entire line, that is, make it danger?
There is a table:
<b-table
:items="items"
:fields="fields"
:sticky-header="stickyHeader"
head-variant="light"
class="mt-5 mx-3"
>
</b-table>
stickyHeader: true,
items: [
{ login: 'user1', password: 'pass1', is_blocked: true, },
{ login: 'user2', password: 'pass2', is_blocked: false},
],
fields: [
{
key: 'login',
label: 'Login',
},
{
key: 'password',
label: 'Password',
},
{
key: 'is_blocked',
label: 'Blocked',
formatter: (value, key, item) => {
return value ? 'Yes' : 'No'
},
sortable: true,
},
],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question