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).
| argument | Type | Description |
|---|---|---|
| settings | object | settings 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
});
},
})