Accessing selected node data


I’m trying to access a spesific node data. Is there a GoJS function to achieve this? I’m just need to put clicked node’s data to a global variable.


Once you have a Node (or Link), you can get its and look at all of its properties.

Remember that if you want to modify that model data, you have to use Model.set or other Model methods. And you have to make all changes within a single transactiobn.

A post was merged into an existing topic: model.toJson saving issue