flowchart.js icon indicating copy to clipboard operation
flowchart.js copied to clipboard

JavaScript Element Trigger

Open sosensible opened this issue 9 years ago • 2 comments

Currently we can trigger an HTML link, and that is great. What I would like to be able to do is trigger a JavaScript function, and let that function/object/etc. determine what happens. This could be anything from a popup window done with the wrapper app to something that changes the CSS so we could see the items that were completed in a workflow.

sosensible avatar Jan 24 '17 20:01 sosensible

Feel free to submit a pull request ;-)

adrai avatar Jan 25 '17 15:01 adrai

@sosensible It's possible to trigger a javascript function by putting "javascript:" in the link, just like an anchor tag href. For example:

e=>end:>javascript:alert('This is the end')

ChrisMiskowiec avatar Feb 16 '17 19:02 ChrisMiskowiec