quasar icon indicating copy to clipboard operation
quasar copied to clipboard

ask: q-pagination set :max attribute

Open johncloud200 opened this issue 8 years ago • 2 comments

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?

johncloud200 avatar May 15 '18 11:05 johncloud200

Hi,

Please use Discord or forum for questions. Github is reserved exclusively for bugs and feature requests. Thank you.

rstoenescu avatar May 15 '18 11:05 rstoenescu

same issue I encountered do you have any solution for this?

jadeOnProg avatar Nov 26 '20 12:11 jadeOnProg