Access Node Externally

Hello,

Is it possible to access a Node from an external Javascript and change its Text, Stroke, etc?

Thanks

What do you mean by “external Javascript”? GoJS is implemented entirely in JavaScript, so you can manipulate any GraphObject in a Diagram. Or you can modify the Model.

Can you give me a simple example of how to change the text from a Node?
I would expect something like:

myDiagram.findNodeForKey(‘mynode’).text = ‘New text’;

Thanks again, Walter!

Sure:
http://gojs.net/latest/intro/usingModels.html
http://gojs.net/latest/intro/dataBinding.html

Thank you again, Walter.

The shiftNode() example gave me a better idea.

Regards