Drawflow
Drawflow copied to clipboard
Custom function call on each node
Hi Jero, First of all, I appreciate your efforts on Drawflow, it is life-saving for me.
I have attached a screenshot, you may see I have developed custom Control Blocks. I want to load custom data (maybe a list of events in a select box or a list of templates for specific channels). I am not good in JS, I am not able to add functions in your minified draflow.min.js file. What is the best approach to adding my custom features in drawflow.
PS: I am developing a Flow for customers, who did some specific event and after that, I send them some specific emails/sms, etc.
You can add new features with:
editor.yourname = function () {
...
}
Or:
You can load the drawflow file like this:
- https://github.com/jerosoler/Drawflow/issues/526#issuecomment-1250828930