jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.61k stars 721 forks source link

Link Connection to a Button #150

Closed xxxx-dev closed 3 years ago

xxxx-dev commented 3 years ago

Hello!, I'm a beginner trying to use your drawflow (Thanks a lot 🥇), and I wanna to link connection to a button(onclick) create a connection between two modules.When I use AddConnection & AddNodeOutput the console always declaring undefined functions.

jerosoler commented 3 years ago

Hello @xxxx-dev

How do you call the functions?

const editor = new Drawflow(id);
...
editor.addConnection(15,16,'output_1','input_1')

The first letter is lowercase