ConfigView

ConfigView

This class handles the rendering of actions on custom settings.

This class takes care of the 2 menu items in the Actions menu and the config Url with the base64encoded settings.

Constructor

new ConfigView()

Source:

Methods

bindConfigUrlBox(handle)

Description:
  • Bind the copy button in the configUrlBox

Source:
Parameters:
Name Type Description
handle function

pass control to the Controller to save the link

bindLoadConfig(handle)

Description:
  • Bind the load config form, which is displayed by clicking on the 'import settings' in the menu

Source:
Parameters:
Name Type Description
handle function

pass control to the Controller to parse the JSON file

bindSaveConfig(handle)

Description:
  • Handle the saving of the configuration as JSON file

Source:
Parameters:
Name Type Description
handle function

pass control to the Controller to build the export JSON

updateConfigUrl(url)

Description:
  • Update the config url

Source:
Parameters:
Name Type Description
url URL

the url to display