Methods
_showGenres()
Shows the genre filter buttons.
- Source:
addEventHandler(handle)
Attach event listeners in the buttons.
Parameters:
Name | Type | Description |
---|---|---|
handle |
function | Function that controls the buttons functionality. |
- Source:
renderGenreErrorMsg(errorMsg)
Generates error HTML and renders it inside the genre filter buttons container.
Parameters:
Name | Type | Description |
---|---|---|
errorMsg |
String | Error message to be displayed. |
- Source:
renderGenreTags(genreData)
Generates the genre filter buttons
Parameters:
Name | Type | Description |
---|---|---|
genreData |
Array | Array of objects that contains the id and title of available genres. |
- Source:
renderHTML(movieData, bmData)
Renders the generated movie/tv show cards in the page.
Parameters:
Name | Type | Description |
---|---|---|
movieData |
Array | Array of objects that contains the id,image and title of the movie/tv show. |
bmData |
Array | Array that contains all the user bookmarked movies/tv shows data. |
- Source: