Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How display Yii2 pagination in GridView widget on and top and bottom part of table?

Tags:

yii2

How display Yii2 pagination in GridView widget on and top and bottom part of table

like image 949
Levon Gevorgyan Avatar asked Nov 13 '16 11:11

Levon Gevorgyan


People also ask

What is Grid view yii2?

The GridView widget takes data from a data provider and presents data in the form of a table. Each row of the table represents a single data item, and a column represents an attribute of the item.


1 Answers

Add this in GridView widget configuration:

'layout' => "{summary}\n{pager}\n{items}\n{pager}",
like image 68
Bizley Avatar answered Nov 01 '22 20:11

Bizley