fperucic / treant-js

Treant.js - javascript library for drawing tree diagrams
MIT License
864 stars 314 forks source link

allow user input node content as HtmlElement #129

Open Jim-JZ-Chen opened 6 years ago

Jim-JZ-Chen commented 6 years ago

so user can better modifier the node content

fperucic commented 6 years ago

ok, please use this.nodeInnerHTML instanceof HTMLElement instead of typeof this.nodeInnerHTML === "string" before using appendChild

We can merge when you make that change.

cheers

fperucic commented 6 years ago

and it would be nice to add the newly added options to the documentation branch