Hi,
Can I identify the actual event source for node, for eg. If I have a node with two panels in it, then on click event of node can I determine which panel is actually clicked. I have to have both the events handled (node click and panel click).
Another thing I would like to know, is that in go.js how can I know the general name for properties or functions, for eg. I want to update properties of a node if some action is performed on diagram, let’s say I want to set isLayoutPositioned property to false for a node if it is dragged to a certain position, I handled it in SelectionMoved event of diagram and in that I wote:
myDiagram.addDiagramListener(“SelectionMoved”, function (e) {
if(e.diagram.selection.Eh.value instanceof go.Node)
e.diagram.selection.Eh.value.isLayoutPositioned = false;
});
So, my question is that do I have to use selection.Eh or is there any general property name for Eh ? How to identify these property names, where in the API documentation I can find that.
Please bear with me if my questions are very basic or foolish, as I am newbie for on javascript as well as go.js.
Thanks