This documentation describes functionality that is in development. For latest version check the nightly build.
For more advanced builders looking to use external scripts to add custom functionality to DappHero powered websites, we are in the process of exposing events.
Adding an Event Listener
console.log("Listening to transactionStatusChange", data);
The data object will contain information about the current action taking place, the status and the contract method Name. This will fire on any smart contract change made in the browser. In the case of auto-invoke this can be very noisy. To filter for specific smart contract method you can evaluate the data.mythodNameKey.value to see if it matches the specific smart contract method you are interested in.
To listen to the smart contract method transferTokens from a script (possibly jQuery) you would use the following code. It will fire whenever a user or auto-invoke interacts with the smart contract method transferTokens.