Answer the question
In order to leave comments, you need to log in
How to set filter in bootstrap-vue table?
I have a table on bootstrap-vue with parameters
<b-table striped hover
:items="mainAcciunt"
:fields="fields"
:filter-function="filterOpt"
:current-page="currentPage"
:per-page="perPage"
:sort-by.sync="sortBy"
:sort-desc.sync="sortDesc"
:fixed="fixed"
@filtered="onFiltered"
>
, I want to filter the data using the filterOpt function, how do I call this function when changing the parameters with which the function will compare the values in the table? <b-form-select :options="debetOptions" v-model="filterDebet" class="mb-1"/>
Answer the question
In order to leave comments, you need to log in
Why not read the documentation ? Everything is written there. Pass filterDebet as the value of the filter parameter to the table: :filter="filterDebet"
.
UPD. Taken from the comments:
I want to filter by multiple values
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question