Class: paginationView

paginationView()

Handle's the rendering of pagination buttons and the movie/tv show cards when a pagination button is clicked.

Extends of mainView

Constructor

new paginationView()

Source:

Methods

_generateNumPageBtnsAfter(lastPage)

Generates pagination buttons that comes after the current page.

Parameters:
Name Type Description
lastPage number

The last page of the page.

Source:
Returns:

Generated pagination buttons.

_generateNumPageBtnsBefore()

Generates pagination buttons that comes before the current page.

Source:
Returns:

Generated pagination buttons.

buttonClicked(event)

Sets the page number and the button type of which user clicked.

Parameters:
Name Type Description
event event

Event that fires when pagination button has been clicked.

Source: