For the complete documentation index, see llms.txt. This page is also available as Markdown.

Events

Events are fired by Tebex.portal upon specific actions to alert your frontend and enable you to take action when required.

To add a portal event callback, use Tebex.portal.on() . The first argument to this function should be the name of the event to listen to, and the second argument should be a function to call when that event is fired:

Tebex.portal.on("close", () => {
    console.log("Portal popup was closed");
});

Available events are as follows:

Name
Fired Upon

"open"

The portal popup opening after calling Tebex.portal.launch().

"close"

The portal popup closing after being dismissed by the user.

Last updated