setSettings

context.setSettings(settings) - Saves settings for the current workspace. Available only within the settings capability context (i.e., in any iframe opened from the addon settings within the workspace).

Arguments
argumentTypeDescription
settingsobjectsettings to save

Return value - Promise

Addon.initialize({
  settings: async (settingsContext) => {
   await settingsContext.setSettings({value: 'test'})
    return settingsContext.openPopup({
      type: 'iframe',
      title: 'Timer settings',
      url: './settings.html',
      height: 200,
      width: 300
    });
  },
})
logo
Kaiten
If you have any questions or need help with integration feel free to write us at support@kaiten.io