question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom pagination boundary and directional link text

See original GitHub issue

In the pagination component I would like to use the words, First, Previous, Next and Last as the boundary and directional link text. However, I am unable to find any settings related to changing the shown text on these links.

When looking at the component template I see:

<a aria-label="First" class="page-link" href>
    <span aria-hidden="true">&laquo;</span>
    <span class="sr-only">First</span>
</a>

And I notice an .sr-only class is on the text I want shown. As a work around I can handle this in css, but I am unable to remove the .sr-only class from the element which makes the generated html unclear.

In the previous pagination component in bootstrap-ui (for angular 1.x) we were given settings to customize the boundary and directional link texts.

  • first-text
  • last-text
  • next-text
  • previous-text

Could we get these settings added or am I missing something and there is a better work around?

angular: 2.0.1 ng-bootstrap: 1.0.0-alpha.7 bootstrap: 4.0.0-alpha.4

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:12
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

13reactions
maxpark-jdcommented, May 31, 2017
3reactions
intellixcommented, May 14, 2017

Just to add another use-case; I want to add custom icons/html instead using SVG icons which go with a design we received:

<i class="icon icon-left-triangle" inlineSVG="left-triangle.svg"></i>

And I imagine it likely that people will want to add font icons there:

<i class="fa fa-chevron-left"></i>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Pagination - CSS: Cascading Style Sheets - MDN Web Docs
Links to sets of pages in a paged listing. Requirements. The pagination pattern typically displays items in a row.
Read more >
Pagination
import { Text, Pagination } from '@mantine/core'; ... Control amount of items displayed after previous and before next buttons with boundaries prop:.
Read more >
Pagination · Bootstrap
Pagination links are customizable for different circumstances. Use .disabled for links that appear un-clickable and .active to indicate the current page. While ...
Read more >
Pagination
The QPagination Vue component allows you to easily display a pagination control on a page. ... Show boundary button links ... Show direction...
Read more >
Paginate Collection lists
‍Paginate a collection list; ‍Understand the anatomy of the pagination wrapper; ‍Configure pagination settings; ‍Share the URL of a collection list page ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found