Expand all

mw.echo.ui.PaginationWidget

Extends

Constructor

new mw.echo.ui.PaginationWidget(paginationModel, [config]) #

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:

Respond to dir select widget choose event

setDisabled(disabled) → {mw.echo.ui.PaginationWidget}chainable #

Set the 'disabled' state of the widget.

Parameters:

Name Type Description
disabled boolean

Disable widget

Source:

Returns:

Type
mw.echo.ui.PaginationWidget
Set the 'disabled' state of the widget.

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.

Source:

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.

Source:
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:
Pagination changed