Pagination
<blaze-pagination pages="15" page="4"></blaze-pagination>
Attributes
Name | Description |
---|---|
pages: number | The total number of available pages |
page: number | The current page to initialise at |
Methods
Name | Description |
---|---|
currentPage(): Promise<number> | returns currently selected page index |
Events
Name | Description |
---|---|
change: object | Raised when the pages changes, returns the current page |
CSS
<nav class="c-pagination">
<button class="c-pagination__control">‹</button>
<div class="c-pagination__pages">
<button class="c-pagination__control">4</button>
<button class="c-pagination__control" aria-current="page">5</button>
<button class="c-pagination__control">6</button>
</div>
<button class="c-pagination__control">›</button>
</nav>