⛳️ Events

Use the following callbacks to get notified on certain state changes of the Bugbattle widget. This enables you to develop an even deeper integration of the Bugbattle widget.

On open

This allows you to get notified once Bugbattle opens.

BugBattle.on("open", () => {
console.log("Bugbattle did open.");
});

On close

This allows you to get notified once Bugbattle closes.

BugBattle.on("close", () => {
console.log("Bugbattle did close.");
});

On feedback sent

This allows you to get notified once Bugbattle opens.

BugBattle.on("feedback-sent", () => {
console.log("Bugbattle did send a feedback item.");
});

On flow started

This allows you to get notified once Bugbattle opens.

BugBattle.on("flow-started", (flow) => {
console.log("The user selected a flow");
console.log(flow);
});

On error while sending feedback

This allows you to get notified once Bugbattle opens.

BugBattle.on("error-while-sending", () => {
console.log("Ouch, something went wrong.");
});