Supplements the standard generation of pagination buttons

1.0.0 2023-04-20 19:12 UTC

This package is auto-updated.

Last update: 2024-03-27 11:59:54 UTC


Latest Stable Version Total Downloads License

This is an extension of the default Yii2 LinkPager widget, which adds dots between page links.

Complements the standard button generation, e.g. "1 << 3 4 5 6 7 8 >> 10", with three-dot buttons
to create navigation, e.g.: "<< 1 ... 3 4 5 6 ... 10 >> "


The preferred way to install this extension is through composer.

Run the following command:

php composer.phar require --prefer-dist i4erkasov/yii2-link-pager-with-dots "*"

or add the following to the require section of your composer.json file:

"i4erkasov/yii2-link-pager-with-dots": "*"


Once the extension is installed, simply use it in your code by :

The set of parameters is the same as for standard LinkPager

Added an additional parameter dotsClass responsible for css класс для точек ...

yii2-twig example:

{{ use('i4erkasov/LinkPagerWithDots/widget/linkPagerWithDots') }}
{{ linkPagerWithDots_widget({
    'pagination': dataProvider.pagination,
    'activePageCssClass': 'active',
    'disableCurrentPageButton': true,
    'prevPageCssClass': 'arrow--prev',
    'nextPageCssClass': 'arrow--next',
    'dotsClass': 'page--dots',
        'class': 'paging--list'
        'class': 'paging--page'
    'linkOptions': {
        'class': 'paging--link'
    'linkPrevNext': {
        'class': 'paging--arrow'
}) | raw }}


This package is released under the MIT License. See LICENSE.md for details.


You can contribute by submitting pull requests or creating new issues.