I've created a text object with some code like :
var surface = dojox.gfx.createSurface(dojo.byId("gfx-holder"), 850, 400);
var myText = surface.createText({x:55, y:60, text:"Original"});
Later I'd like to change the text. I've tried a lot of variations on:
myText.text = "Updated";
or
myText.setText({text: "Updated"});
With no luck , I want to replace the original text with an updated text. Is the only option to delete the old one and draw again?
You can simply access the node and change it's innerHtml text like
See below snippet :