Closed remoteboy closed 3 months ago
Hi @remoteboy ,
Thanks - got the Trigger working but not sure how to hook into the cmswt_search_state_changed event?
Please check this.
document.addEventListener('cmswt_search_state_changed', function(eventState){
if( eventState === undefined) return;
const {detail:state} = eventState;
console.log('State of Search',state)
});
Thanks - that works a treat.
Are there any events triggered in JavaScript that I can hook into? I have two things I'd like to achieve