Edit in GitHubLog an issue

addOnUISdk.instance.manifest

The manifest object provides access to the manifest.json file entries of the add-on.

Type

object (specific type Record)

Please see the Manifest Schema Reference for the whole list of properties and types that can be specified in the manifest.json for your add-on.

Usage

Below is an example of using the manifest object, along with the expected output.

Copied to your clipboard
import addOnUISdk from "https://new.express.adobe.com/static/add-on-sdk/sdk.js";
addOnUISdk.ready.then(() => {
console.log(JSON.stringify(addOnUISdk.instance.manifest));
console.log("Name: " + manifest["name"]);
console.log("Test ID " + manifest["testId"]);
console.log("Version " + manifest["version"]);
console.log("Manifest Version " + manifest["manifestVersion"]);
for (const app of manifest["requirements"]["apps"]) {
console.log("Requirements -> Apps " + JSON.stringify(app));
}
for (const entryPoint of manifest["entryPoints"]) {
console.log("Entry Point Type " + entryPoint["type"]);
console.log("Entry Point ID " + entryPoint["id"]);
console.log("Entry Point main " + entryPoint["main"]);
}
});
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.