Using the Act! Plugins Library

Your plugin will need to communicate with the Act! application in order to provide a robust experience. Certain features, such as offline functionality, are dependent on that. This API is the recommended approach for data fetching and interaction with the Act! application.

The ActPlugin class provides properties and functions for communicating with the Act! application.

To communicate with Act!, initialize an ActPlugin object.

import { ActPlugin } from '@act/plugins';

const actPlugin = new ActPlugin();
actPlugin.init(window);

Calling init will create the link between the Act! application and your application. You must pass the window object as that is the object that event handling for messages will take place from.

For more details on the @act/plugins API, check out the fundamentals API section.

Web Components