DaHaiz / ngFlowchart

ngFlowchart enables drag&drop modelling of graphs in web applications
http://one-logic.github.io/ngFlowchart/dist/
MIT License
103 stars 64 forks source link

Edge-click event #51

Open nardocesar opened 6 years ago

nardocesar commented 6 years ago

Can I use an "edge click" event? How can I do this?

nardocesar commented 6 years ago

Just fix my problem with this trick:

$timeout(function(){
                    var edgeSelect = document.querySelectorAll('.fc-edge')
                    for (var i = 0; i < edgeSelect.length; i++) {
                      edgeSelect[i].addEventListener('click', function () {
                        console.log('Edge clicked.')
                      })
                    }
                    console.log('Listener function loaded.)
                  },100)