I'm using Table from Bootstrap Vue, and I'm trying to display row details when clicking on a row.
I used row-clicked
event as the doc said, but I don't find any row details with a toggleDetails
method.
So I don't even know how to open it and where toggleDetails
come from.
There is a way to open this details row with row.clicked
event ?
Or should I use another method to do this ?
Do you have some clues ?
EDIT
There is some code to illustrate a bit more my problem, there is my table with the details row.
<b-table
v-if="items"
:items="items"
:fields="fields"
show-empty
striped
hover
responsive
empty-text="There is no messages to show"
class="col-sm-12 col-md-10"
@row-clicked="test"
>
<template
slot="message"
slot-scope="row"
>
{{ row.item.message }}
</template>
<template
slot="row-details"
slot-scope="row"
>
<code>{{ row.item.message }}</code>
</template>
</b-table>
You can see the row.clicked
event I use on the table, and then my methods where I'm trying to open the row details. It's a simple method with some console.log
methods: {
test(item, index, event) {
console.log(item, index, event);
},
},