@pirozek wrote:
Hey guys, I am trying to get object from Changed event, the object on which the change occurs. According to docs there is a parameter on given event, which contains said object, but I have problem accesing data on this object. I`ll give an example, imagine a simple diagram with one node (http://prntscr.com/es9vci) on which I have enabled editable text field. I need to know, when this textfield is changed and on what Node. For moving the nodes I am using this kind of code:
diagram.addDiagramListener('SelectionMoved', (e) => {
diagram.selection.each((item) => {
if (item instanceof go.Node) {
console.log(item.data) // <--- this is what I need
...But with changed event there is no
diagram.selection, so how can I get to the sameitem.datawith Changed event?
Posts: 5
Participants: 2