E
E
Eugene2018-05-10 14:02:09
Yii
Eugene, 2018-05-10 14:02:09

Styling LinkPager. How to remove disabled?

I'm trying to make a similar style out of layout.5af425a15f515181975035.jpeg

<?php
            echo LinkPager::widget([
                'pagination' => $pages,
                'activePageCssClass'=> 'active',
                'hideOnSinglePage' => true,
                'nextPageCssClass' => 'next',
                'prevPageCssClass' => 'prev',
                'options' => ['class' => '']



            ]);
            ?>

In 1 it put a bolt on this line : 'activePageCssClass'=> 'active',
The Active class adds something, but it doesn't work. But this is apparently due to the fact that active used to hang on a, and now it hangs on li.
But it adds the disabled class to the arrows.
By the way, I still don’t understand how to change the picture of the arrows to fa.
Thought through nextPageLabel, but stupidly inserts text

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-05-10
@webinar

hell you will understand what you need. a lot of emotions, not a line in fact. maybe this:
https://www.yiiframework.com/doc/api/2.0/yii-widge...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question