Two event based callback functions have been added for every tool. You can attach the event listener to the tools element (div) .
qmod-before-template-bind = This is triggered before the data is bound to the template.
qmod-after-template-bind = This is triggered after data has been bound to the template.
For example.
<script type="application/javascript">
$( "#exampleevent" ).on( "qmod-before-template-bind", function( event ) { console.log('before template') });
</script>
</head>