M
M
Messi2016-11-09 13:39:21
Yii
Messi, 2016-11-09 13:39:21

Add first and last on all pages?

I display GridView on different pages.
To add the first, last buttons to the paginator, then the widget needs to add
'pager' => [ 'firstPageLabel' => 'First', 'lastPageLabel' => 'Last', ]
Is it possible to somehow write this in one place and so that it is automatically applied to all widgets that have a paginator?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-11-09
@FitTech

You can create your own class, inherit from GridView, override firstPageLabel and lastPageLabel, and then use your class.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question