Your listener id (must be unique)
Your listener function
// log a message in the console once the simple search has been completed
JMap.Event.SimpleSearch.on.success(
"custom-simple-search-success",
params => console.log("A simple search has been completed", params.results)
)
JMap.Event.SimpleSearch.on.success
This event is triggered when a simple search has been completed.