How in LinkPager yii2 to display such a pattern

<ul class="pagination-custom row flex-center"> <div class="col-1"> <li> <a class="not-active" href=""> < Предыдущая</a> </li> </div> <div class="col-2 flex-center"> <li class="active"><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li class="disabled"><a href="#">...</a></li> <li><a href="#">5</a></li> </div> <div class="col-1"> <li><a href="#">Следующая ></a></li> </div> </ul> 

    1 answer 1

    You cannot set a template directly, as this widget uses its own template, which runs on bootstrap. (At one time, too long tormented). But you can bring the paginator as close as possible using the widget's options, and wrap it in your class, and then use css to bring the look to the one you need. Here is an example of using the options of this widget: https://www.codevoila.com/post/12/yii2-listview-example-customizing-pagination