Class

ContentstackAppSDK

ContentstackAppSDK

Class to initialize the App on Contentstack UI. Import Contentstack App SDK and then call ContentstackAppSDK.init in your code base

View Source index.ts, line 21

A promise object which will be resolved with an instance of the Extension class which is instantiated using the data received from the Contentstack UI.
external:Promise
Examples

Custom Filed

ContentstackAppSDK.init().then(function (sdk) {
   const customField = sdk.location.CustomField;
})

Dashboard Widget

ContentstackAppSDK.init().then(function (sdk) {
   const dashboardUILocation = sdk.location.DashboardWidget;
})

Members

Extension

# static _extension

A static variable that stores the instance of Extension class after initialization

View Source index.ts, line 60

# static SDK_VERSION

Version of Contentstack App SDK.

View Source index.ts, line 43

# _extension

A static variable that stores the instance of Extension class after initialization

View Source index.ts, line 25

Methods

# static init() → {Promise.<Extension>}

Initializes the App SDK and returns an instance of Extension class

View Source index.ts, line 66

Promise.<Extension>

# static SDK_VERSION()

Version of Contentstack App SDK.

View Source index.ts, line 71