Code snippet to attach a click handler to a button
// Disable multiple handlers, as these may be used in frame scripts
if(!this.instance_name_here_click_cbk) {
function instance_name_here_click(evt) {
// Start your custom code
console.log("Button clicked");
// End your custom code
}
// Attach an event handler on the parent with the filter as the
// Component instance’s id
$("#dom_overlay_container").on("click", "#instance_name_here", instance_name_here_click.bind(this));
this.instance_name_here_click_cbk = true;
}