AppConfigWidget

View as Markdown

AppConfigWidget

The AppConfigWidget object enables app configuration and settings management within the Contentstack UI.

const appConfig = sdk.location.AppConfigWidget;
if (appConfig) {
  const stack = appConfig.stack;
  const installation = appConfig.installation;
}

It supports only the stack core object.

NameTypeDescription

The installation property manages app installation data, including retrieval and updates.

const installation = appConfig.installation;
const data = await installation.getInstallationData();
await installation.setInstallationData(newData);
installation.setValidity(true);