Declare an application. Visual Investigator will await whenReady for each before continuing its own app initialization. notifyAppReady should be called to indicate when the app initialization is complete. if provided, registerResourceBundle should be called to indicate when the I18n resource bundle is ready.
appName of the app configuration.
Optional
i18nResourceBundleName: stringI18n resource bundle name of the app configuration.
Register a resource bundle with the Resource Service.
{string} Name for the bundle to be stored in the resource cache.
{I18nResources} Object containing the resources to be added for the bundle specified by the bundleName parameter.
Resolves once notifyAppReady has been called for the given app name, or once the given SviInitEvent is ready. Will reject with an error if timeout elapses before notifyAppReady is called.
name of the app configuration or init event.
Optional
timeout: numbermax wait (milliseconds) before the promise is rejected (defaults to APP_INIT_TIMEOUT_MS).
An API to manage the asynchronous initialization of solution applications before the Visual Investigator application is fully initialized.
Accessed from the window at
window.sas.viInit
Example