几天来,我一直在寻找并尝试更改此 dijit 文本,但似乎没有任何效果。我想将 dijit 的初始显示从“打印”更改为“导出”。我尝试使用 jquery 来调用 dijit 并更改文本。我也试过了。
dojo.byId("print_button").innerHTML = "EXPORT"; dijit.byId("print_button").attr("export")
至少还有其他一些事情,但我无法将初始单词从打印更改为导出。任何帮助是极大的赞赏!
("
//creates the templates and the dijit
function handlePrintInfo(resp) {
var templates;
templates = [{
label: "Image",
format: "png32", //PNG format only
layout: "MAP_ONLY",
exportOptions: {width:1920, height:1182, dpi:200},
showAttribution: false
}];
//create the print dijit
app.printer = new esri.dijit.Print
({
"map": map,
"templates": templates,
url: app.printUrl
}, dojo.byId("print_button"));
app.printer.startup();
app.printer._printText = "";
app.printer._printingText = "Exporting";
app.printer._printoutText = "Open Image";
} //end handleprintinfo