i'm trying change amount of rows shown on gridview (yii2) couldn't find in documentation.
is possible or have have use extension? (kartik example.)
also, possible remove "showing x of x items" shown beneath?
to change number of items displayed per page, need set pagination
in data provider.
example:
$dataprovider = new activedataprovider([ ... 'pagination' => [ 'pagesize' => 10, ], ]);
as removing information displayed items need remove summary
layout
:
<?= gridview::widget([ ... 'layout' => "{items}\n{pager}", ]) ?>
official docs:
Comments
Post a Comment