quasar
quasar copied to clipboard
ask: q-pagination set :max attribute
quasar-framework : 0.15.10
<q-pagination input
v-model="pagination.current_page"
:max="pagination.last_page"
@input="getDataFromApi()" />
created () {
let response = this.getDataFromApi()
this.pagination.last_page = response.last_page
}
I got doubled hit getDataFromApi(), because when I set this.pagination.last_page = response.last_page that will hit @input event
any trick, how I can set :max from Api without hit @input?
Hi,
Please use Discord or forum for questions. Github is reserved exclusively for bugs and feature requests. Thank you.
same issue I encountered do you have any solution for this?