We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This component auto renders total page based on the data provided by api response.
Steps:
data () { return { paging: { page: 1, size: 10, totalRecords: 0 } } }
loadPage (page) { this.paging.page = page this.initPage() //this method contains the api call }
<div class="announcement__pagination-wrapper" v-if="!isLoading"> <b-pagination :total="paging.totalRecords" :current.sync="paging.currentPage" :per-page="paging.size" @change="loadPage" range-before="1" range-after="2" order="is-centered"> </b-pagination> </div>