-
Notifications
You must be signed in to change notification settings - Fork 18
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: configurable "results" label #293
Comments
This sounds like a good idea and would be quite straightforward to add. It's worth noting though that the pagination component is being added to the GOV.UK Design System and they're researching the best way to allow customisation. For example, our component has hard-coded English in it so isn't possible to use with other languages. |
Allow users to use custom text in the pagination summary, defaulting to "results" if unspecified. fixes #293
Allow users to use custom text in the pagination summary, defaulting to "results" if unspecified. fixes #293
Allow users to use custom text in the pagination summary, defaulting to "results" if unspecified. fixes #293
# [1.2.0](v1.1.0...v1.2.0) (2022-01-10) ### Features * **pagination:** allow customisation of pagination results text ([5771ca7](5771ca7)), closes [#293](#293)
🎉 This issue has been resolved in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
It would be useful to be able to specify the text used to display the count of results so that instead of always saying (for example) "Showing 1 to 50 of 90 results" it could instead say "Showing 1 to 50 of 90 documents".
moj-frontend/src/moj/components/pagination/template.njk
Line 32 in 58420e6
The text was updated successfully, but these errors were encountered: