PresetView

web/PresetView~ PresetView

This class handles the rendering of and interaction with the preset buttons.

Constructor

new PresetView()

Description:
  • Constructor

Source:

Methods

buildPresetButtons(names, handler)

Description:
  • Build the preset buttons and add the event handler

Source:
Parameters:
Name Type Description
names Array

list of preset names

handler function

handle the change in the Controller

displayDescription(description)

Description:
  • This function shows the description of the currently selected preset. Depending on the occurrence of the word WARNING the box is displayed in red or blue.

Source:
Parameters:
Name Type Description
description string

the description of the preset

setTitle(preset)

Description:
  • Update the title in the preset view

Source:
Parameters:
Name Type Description
preset string

the selected preset