HTML:
<div class="paginator" id="paginator1"></div>
JavaScript:
$('paginator1').paginator();
| Property | Type | Default | Description |
|---|---|---|---|
| pagesTotal | int | 1 | Total pages count |
| pagesSpan | int | 10 | Length span of pages |
| pageCurrent | int | 50 | Сurrent page number |
| baseUrl | string | index.html?page=%number% | URL pattern |
| buildCounter | function | Function for calculating page numbers | |
| pageScroll | int | 3 | Turnover number of pages with scrolling |
| clickHandler | function | The callback function is called when was clicked page link | |
| returnOrder | bool | false | Flag display pages in reverse order |
| lang | object | Object of localization | |
| events | object | {keyboard: true, scroll: true} | Options binding events |