Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6969

Add default icon to node

$
0
0

@mohanr.k wrote:

Is it possible to add default icon to Node?

$(go.Picture, { source: "icons/example.png", background: "gray", width: 50, height: 50 })

In above example if example.png is not available at icons folder then I want the node to show a default icon.

In my current code I am using http.get() method to check whether icon exist in path or not. Looks like this is causing some performance issue in loading my data because I have more than 1000 nodes to be checked whether icon exist or not.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles