I am using the esri/dijit/Print in an application. On print-complete, I have the new page automatically open in a new tab.
printer.on("print-complete", function (evt) {
window.open(evt.result.url);
});
When user returns to original page, the print button is still displayed as "printout"
I have tried using printer.refresh(); which amazingly works, but kicks out errors in the console.
I would like the print button to return to it's printer.startup(); state after print-complete.