-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination Options - customize footer navigation info #810
Comments
I think it makes the most sense to remove the So you instead pass in: paginationOptions: {
text: 'Displaying {{ first }} thru {{ last }} of {{ total }} kittens.'
} Then VGT could take that value and replace the data in it: computed: {
paginationText: function () {
let text = this.paginationOptions.text || 'Showing {{ first }} to {{ last }} of {{ total }} entries.';
text = text.replace('{{ first }}', this.first);
text = text.replace('{{ last }}', this.last);
text = text.replace('{{ total }}', this.total);
return text;
}
} Then people can localize it to any language, or just tweak the formatting back to its previous state |
Yeah, I plan on re-writing the pagination bit this weekend. Recent PRs have added a hodgepodge of code/functionality to it and it needs some TLC. |
new property closing. |
Thank you @xaksis ! I love vue-good-table ! |
Issue Type
Specs
Version "2.21.3", all browsers
Expected Behavior
https://xaksis.github.io/vue-good-table/guide/configuration/pagination-options.html#enabled
In the pagination options add a parameter to customize the text "Showing X to XX of XX entries".
Now is implemented only ofLabel.
The text was updated successfully, but these errors were encountered: