Answer the question
In order to leave comments, you need to log in
How to implement adding or removing a row in bootstrap vue?
Good afternoon.
Can you please tell me how to add or remove a line?
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