Gojs textblock - edit text later

Hi all,

Simple code but no solution yet

this.diagramTitle =
layerName: ‘Grid’,
data: new go.Point(0, 2),
$(go.TextBlock, //Note this is just title node so binding needed and not added as part of node collection
text: ’ this is my title’
}, { font: ‘bold 10pt sans-serif’, stroke: ‘green’ }));


Based on external paramters now I have to change the title
I am trying find this go.part and modify the text which i am not able to do
Any quick suggestion will be appreciated

Can’t you just keep a reference to that Part and change it when you want to? Isn’t that what this.diagramTitle is?

this.diagramTitle.elt(0).text = "hello";