Hey,
I want to create a node outside of myDiagram(the grid) Canvas in order to distinguish it as the Title for the diagram. And in addition the value of the node should become a part of the JSON created for the diagram.
Is there any way to do that in gojs?
For this that node must be a part of diagram, right ?
But i want it outside of my diagram or usually as an HTML element and bind to JSON. Any example for such case ?
var model = myDiagram.model;
model.startTransaction();
model.setDataProperty(model.modelData, "title", ...the new text string...);
model.commitTransaction("changed title");