SettingsController

web/SettingsController~ SettingsController

This class handles the entire Settings pane

Constructor

new SettingsController(model, view)

Source:
Parameters:
Name Type Description
model Object

new SettingsModel

view SettingsView

new SettingsView

Methods

saveSettings(settings)

Description:
  • Convert the rendered settings back to the model and pass it on to the XKPasswd class to use for password generation

Source:
Parameters:
Name Type Description
settings Object

the object containing the new settings

setConfigController(configController)

Description:
  • Set the config controller separately, so we can use one config controller

Source:
Parameters:
Name Type Description
configController ConfigController

new ConfigController

updateSettings(config)

Description:
  • Update settings with the presets

Source:
Parameters:
Name Type Description
config Object

the configuration