Feedback Aide API Methods
on()
Registers an event listener for the specified event.
You would want to use this to execute a callback function whenever the specified event is triggered.
Examples
// Using the feedback session instance
feedbackSession.on('save:success', function () {
console.log('save succeeded');
});
// Using the session UI instance
sessionUI.on('save:success', function () {
console.log('save succeeded');
});
Arguments
-
event string
The name of the event to listen for.
-
callback function
The function to execute when the event is triggered.
Return value
None (undefined).