Answer the question
In order to leave comments, you need to log in
BootstrapTable vuejs how to update field programmatically?
Greetings.
Using VUEJS and BootstrapTable
<b-table
ref="refShopListTable"
class="position-relative min-height-250"
:items="fetchShops"
responsive
:fields="tableColumns"
primary-key="id"
:sort-by.sync="sortBy"
show-empty
empty-text="Магазины не найдены ♀"
:sort-desc.sync="isSortDirDesc"
>
Answer the question
In order to leave comments, you need to log in
It would be more correct:
1) create an array of items in data
2) create a method for the init example in which the request will be executed.
Throw out resolve from the promise, do the check, and push the data into the data array items
3) create a mounted hook in which you execute your this.init()
4) replace :items with your items from the date
Work with the items array
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question