Class: settingsView

settingsView()

Handles the transitions in the settings panel.

Constructor

new settingsView()

Attach event listeners in the settings and close settings button.

Source:

Methods

_closeSettings()

Renders the transitions when closing the settings panel.

Source:

_openSettings()

Renders the transitions when opening the settings panel.

Source:

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:

updateSettings(data)

Toggles the button automatically when that button is already enabled in the user settings data.

Parameters:
Name Type Description
data Object

Object that contains the data's of the settings.

Source: