-
-
Notifications
You must be signed in to change notification settings - Fork 44
Add pageSizeOptions and goToPageLabel options for LinkPager #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
taobig
commented
Jul 7, 2025
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ✔️ |
Breaks BC? | ❌ |
Fixed issues | #100 |
Usage:
|
src/LinkPager.php
Outdated
@@ -148,6 +149,17 @@ class LinkPager extends Widget | |||
*/ | |||
public $disableCurrentPageButton = false; | |||
|
|||
/** | |||
* @var array Number of records displayed per page. If the array is empty, this area will not be displayed. | |||
* e.g. [5=>5, 10 => 10, 20 => 20, 50 => 50] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* e.g. [5=>5, 10 => 10, 20 => 20, 50 => 50] | |
* e.g. [5 => 5, 10 => 10, 20 => 20, 50 => 50] |
What's the meaning of keys/values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samdark I've updated the comments
Can't the page size not simply be done via pagination initialisation? For me this is nothing to be handled in the widget, it comes down to data provider. $pager = new LinkPager([
'pagination' => [
'pageSize' => 50
]
]); And the |
@simialbi I've updated the comments so you can review it again. |
@terabytesoftw Can you review this PR? |