kaluginserg / cytoscape-node-html-label

Labels for cytoscape node. Demo:
https://kaluginserg.github.io/cytoscape-node-html-label/
MIT License
102 stars 43 forks source link

Label content when adding node #49

Open GlitchEclipse opened 4 years ago

GlitchEclipse commented 4 years ago

I am adding a node to the cy graph. The node-html-label works greats when I render the entire graph, but if I add a single node to it using cy.add(element) it doesn't seem to recognize the label and only inserts the node with the css class. I am sure I am missing setting something. I don't want to re-render the graph for just adding nodes. I just want to add the node and have the label be visible when it is added with the information I specify. Can someone help me with what I might be missing?

image