Javascript app event guideline
Welcome to the JavaScript App Event Guideline, exclusively designed for Air Product Reviews. This guide provides detailed insights and best practices for managing events within your JavaScript application, empowering you to create a seamless and interactive user experience.
Trigger block inserted
document.addEventListener('airBlockLoaded',function(evt){
console.log(evt.detail);
});
Submit form success
Use this JavaScript pattern to retrieve reviews after successfully submitting.
document.addEventListener('airFormSubmitSuccess',function(evt){
console.log(evt.detail);
});
Submit form failure
Use this JavaScript pattern to receive error messages when submission fails.
document.addEventListener('airFormSubmitFailure',function(evt){
console.log(evt.detail);
});
Data reviews loaded
Use this JavaScript pattern to receive a list of reviews once the review loading process is completed in the Review box.
document.addEventListener('airReviewDataLoaded',function(evt){
console.log(evt.detail);
});