Get text from node after edit

Hi, I need to get the text from a node after the user edits that text, I am new using GoJS and I don’t know how to do this, is it possible?
Thank you.

If you have a TwoWay Binding on the TextBlock.text property, the source property of the node’s data object will have the new string.

Perhaps you want to define a TextBlock.textEdited event handler? https://gojs.net/latest/api/symbols/TextBlock.html#textEdited
Or you could declare a “TextEdited” DiagramEvent listener.
https://gojs.net/latest/intro/events.html#TextEdited

1 Like

Perfect, that’s just what I needed, thank you so much!!