D
D
Dauren S2020-10-30 10:27:40
Vue.js
Dauren S, 2020-10-30 10:27:40

Vue-bootstrap4-table select row?

I installed such an extension on VUe
https://rubanraj54.gitbook.io/vue-bootstrap4-table...
Please tell me how to track the row selection?
To add its array when clicking on the line checkbox

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dauren S, 2020-11-01
@dauren101

<template>
    <div id="app">
       <vue-bootstrap4-table :rows="rows" :columns="columns" :actions="actions" :config="config" @on-select-row="onSelectRow"  @on-change-query="onChangeQuery">
        </vue-bootstrap4-table>

        <span>Checked names: {{ checkedNames }}</span>
    </div>
</template>

<code lang="javascript">
    data: function() {
            return {
                checkedNames: []
            }
        },
    methods: {
            onSelectRow(e)
            {
               this.checkedNames=e.selected_items;
            },
     
        },
</code>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question