HTML + Javascript
Steps to integrate the Preventor broker SDK into HTML and JavaScript vanilla application.
Last updated
Steps to integrate the Preventor broker SDK into HTML and JavaScript vanilla application.
Last updated
To install the Preventor Broker SDK, add the following script.
Add pvt-broker
tag into your HTML.
Set your configuration
You can find your credentials on the Preventor platform
You can find the broker ID on the Preventor platform
Call the open()
method to open the component
pvt-broker
emits a loaded event when the Preventer Broker SDK finishes downloading. In the example below, the loaded event is utilized to enable a button that opens the Preventer Broker SDK.
A complete HTML
file should look similar to the example below.
Congratulations, the Preventor Broker SDK has been successfully configured!