Extends
Constructor
new mw.echo.ui.PaginationWidget(paginationModel, [config])
#
Hierarchy
A pagination widget allowing the user to go forward, backwards, and after a couple of pages, go back to home.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
paginationModel |
mw.echo.dm.PaginationModel | Pagination model |
|
config |
Object |
optional |
Configuration object |
- Source:
A pagination widget allowing the user to go forward, backwards, and after a couple of pages, go back to home.
Methods
onDirSelectWidgetChoose(item)
#
Respond to dir select widget choose event
Parameters:
Name | Type | Description |
---|---|---|
item |
OO.ui.ButtonOptionWidget | Chosen button |
- Source:
Fires:
setDisabled(disabled) → {mw.echo.ui.PaginationWidget}chainable
#
Set the 'disabled' state of the widget.
Parameters:
Name | Type | Description |
---|---|---|
disabled |
boolean | Disable widget |
Returns:
updateLabel()
#
Update the pagination label according to the page number, the amount of notifications per page, and the number of notifications on the current page.
Update the pagination label according to the page number, the amount of notifications per page, and the number of notifications on the current page.
updateWidgetState()
#
Update the state - disabled and visibility - of the sub widgets.
Events
change(direction)
#
Pagination changed
Parameters:
Name | Type | Description |
---|---|---|
direction |
string | Direction of movement 'prev', 'next' or 'start' |
- Source: