In this tutorial, we will explore the simple popup API that Breakdance offers, which allows you to trigger the opening and closing of specific pop-ups. This feature is particularly useful for developers wanting to interact with the popup’s open or close state via third-party code.
To start with, it is essential to know the ID of the popup you want to open or close.
The API has one method available: BreakdancePopup.runAction.
This method accepts two arguments:
Below is an example of using the API to open a popup.