cbi
1
Hello there,
I’ve a typical (out-of-the-box) Gridview; it works well but it renders something ugly its pagination:

The actual version of Yii2 with advanced template is 2.0.45 with BS5: ~2.0.2.
I’d like to render a pagination like kartik-v/yii2-grid, that renders nice:

Any clue?
Thank you,
S.
1 Like
Bizley
(Bizley)
2
Add to your GridView widget config
'pager' => ['class' => \yii\bootstrap5\LinkPager::class],
6 Likes
even better:
'container' => [
'definitions' => [
\yii\widgets\LinkPager::class => \yii\bootstrap5\LinkPager::class,
],
],