singhalavi / graph-tree

Graph UI in Tree form(one way relationship)
1 stars 3 forks source link

How we give Icon on Node? #3

Closed sachinsurve11 closed 10 years ago

sachinsurve11 commented 11 years ago

I am trying to provide image or icon on node. How we can give that. If I am providing url as string for icon, it is not rendering image for same.

singhalavi commented 10 years ago

use 0.0.7 version and give any image url in addNode() method, you can also set icon width and height as below graphJSComponent.getNode(id).setIconWidth(50); graphJSComponent.getNode(id).setIconHeight(50);

default is 16x16.

soundar-gnts commented 10 years ago

Hi singhalavi, I am trying to get image in node.but its not set it.Plese provide sample code.