Class: SideBarBtnView

SideBarBtnView()

Handles the sidebar view.

Constructor

new SideBarBtnView()

Source:

Methods

addEventHandler(handle)

Attaches event listener to the main section.

Parameters:
Name Type Description
handle function

Function that controls what happens when button has been clicked.

Source:

renderActive(event)

Activates the button that the user just clicked.

Parameters:
Name Type Description
event event

Event that fires when user clicked a button in the sidebar.

Source:

updateBtn(btnType)

Updates the activated buttons.

Parameters:
Name Type Description
btnType string

Type of the button that has been clicked.

Source: