Interface ResourceApi

Use window.sas.viInit.registerResourceBundle to register resources before the rest of the SAS Visual Investigator API is ready. This API provides the resource functionality in SAS Visual Investigator.

Accessed from the window at window.sas.vi.resource.

window.sas.vi.resource.registerResourceBundle("bundleName", resources);
interface ResourceApi {
    registerResourceBundle(bundleName: string, resources: I18nResources): void;
}

Methods

  • Parameters

    • bundleName: string

      {string} Name for the bundle to be stored in the resource cache.

    • resources: I18nResources

      {I18nResources} Object containing the resources to be added for the bundle specified by the bundleName parameter.

    Returns void

    Register a resource bundle with the Resource Service.