Vue-good-table: Pagination doesn't work in remote mode

Created on 4 Mar 2019  路  4Comments  路  Source: xaksis/vue-good-table

Version: v2.16.2

In remote mode total props == currentPerPage instead of totalRecords so there is only one page visible, for example 1 - 30 of 30 and "Next" button is disabled. I do everything according to "remote mode" documentation. How can I fix it?

zrzut ekranu z 2019-03-04 08-17-39

zrzut ekranu z 2019-03-04 08-22-05

Most helpful comment

Ok, changed :totalRows="totalRecords" to :total-rows="totalRecords" and it's working fine.

All 4 comments

totalRows is undefined, I can't find the reason.
zrzut ekranu z 2019-03-04 10-49-35

Ok, changed :totalRows="totalRecords" to :total-rows="totalRecords" and it's working fine.

Docs need updating to reflect this, i spent a long time trying to figure this out

Hey @sam-g-roberts this isn't a library-specific issue, more of your specific Vue implementation. The props would work fine as they are in string templates but for HTML templates you need to use kebab case:
https://vuejs.org/v2/guide/components-props.html#Prop-Casing-camelCase-vs-kebab-case

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sylvaincaillot picture sylvaincaillot  路  3Comments

sylvaincaillot picture sylvaincaillot  路  4Comments

jannishuebl picture jannishuebl  路  3Comments

Sharvadze picture Sharvadze  路  4Comments

luizzz picture luizzz  路  6Comments