API Reference
Top-Level Exports
SASReportElementSASReportPageElementSASReportObjectElementconnectToServerregisterDataDrivenContentDataDrivenContentHandlesetUseHighContrastReportThemesetLoadingThemesetLocalesetFormatterLocale
Loading with <script>
When you load the library with a script element, the vaReportComponents global variable is not
ready to use until all of the other assets are loaded. The vaReportComponents.loaded event is
dispatched once it is ready.
<script
async
src="https://cdn.developer.sas.com/packages/va-report-components/latest/dist/umd/va-report-components.js"
></script>
<script>
window.addEventListener('vaReportComponents.loaded', function () {
// The SAS Visual Analytics SDK is loaded and ready
const connectToServer = vaReportComponents.connectToServer;
});
</script>
Loading with imports
When you load the library as an ES module, APIs are available as named imports. See the ES module imports guide for more information about loading the library as a module.
import { connectToServer } from '@sassoftware/va-report-components';