schaumb / domarrow.js

This javascript library can draw connector line/arrow between any two DOM-element. Without any dependency.
GNU General Public License v3.0
12 stars 6 forks source link

Not working with dynamic content #5

Open osa-ora opened 4 years ago

osa-ora commented 4 years ago

If dynamic content added using innerHTML method, you cannot connect both elements.

osa-ora commented 4 years ago

The workaround is by calling the create method, yet it is not exposed to call it explicitly, any idea how to fix this ?

schaumb commented 4 years ago

Sorry I misunderstood your issue. So yes, this functionality is not implemented in bodyObserver :(

osa-ora commented 4 years ago

Currently it is working with me one to many or for dynamic content by calling create function whenever i added new connection, but to be able to call this function, I had to remove the "(()=>{" so the function is visible.