Skip to content

Commit

Permalink
feat(md-pagination): add ... indicator to page links when start/end a…
Browse files Browse the repository at this point in the history
…re not visible (also hijacked @glennpierce's commit message for changelog creation)
  • Loading branch information
Thanood committed Jul 22, 2016
1 parent f1f5ff6 commit b142fe8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pagination/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
<li md-waves click.delegate="setPreviousPage()" class="${ mdActivePage === 1 ? 'disabled' : '' }"><a><i class="material-icons">chevron_left</i></a></li>
</template>
<template if.bind="mdShowPageLinks">
<li md-waves click.delegate="setActivePage(p+1)" repeat.for="p of mdPageLinks" class="${ p+1 === mdActivePage ? 'active' : ''}">
<a>${p+1}</a>
</li>
<li md-waves click.delegate="setActivePage(p+1)" repeat.for="p of mdPageLinks" class="${ p+1 === mdActivePage ? 'active' : ''}">
<span if.bind="$first && p > 0">...</span>
<a>${p+1}</a>
<span if.bind="$last && p <= mdPages">...</span>
</li>
</template>
<template if.bind="mdShowPrevNext">
<li md-waves click.delegate="setNextPage()" class="${ mdActivePage === mdPages ? 'disabled' : '' }"><a><i class="material-icons">chevron_right</i></a></li>
Expand Down

0 comments on commit b142fe8

Please sign in to comment.