Skip to content

Commit

Permalink
Add 500 and 1000 per-page variants to Pager component
Browse files Browse the repository at this point in the history
  • Loading branch information
ereminmdev committed Feb 20, 2024
1 parent 8e8a6f8 commit 66cfa32
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 110 deletions.
2 changes: 1 addition & 1 deletion components/Pager.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Pager extends LinkPager
/**
* @var array[int] page sizes to show
*/
public $pageSizes = [1, 5, 10, 20, 30, 50, 100];
public $pageSizes = [1, 5, 10, 20, 30, 50, 100, 500, 1000];

/**
* {@inheritdoc}
Expand Down
2 changes: 1 addition & 1 deletion components/Pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Pagination extends \yii\data\Pagination
/**
* @var array|false the page size limits
*/
public $pageSizeLimit = [0, 100];
public $pageSizeLimit = [0, 1000];
/**
* @var string key to store page size
*/
Expand Down
108 changes: 0 additions & 108 deletions components/PerPage.php

This file was deleted.

0 comments on commit 66cfa32

Please sign in to comment.