私はこの dijit テキストを何日も探して変更しようとしてきましたが、何も機能していないようです。dijitの初期表示を「印刷」から「エクスポート」に変更したい。jquery を使用して dijit を呼び出し、テキストを変更しようとしました。私も試しました。
dojo.byId("print_button").innerHTML = "EXPORT"; dijit.byId("印刷ボタン").attr("エクスポート")
少なくとも他にもいくつかありますが、最初の単語を印刷からエクスポートに変更することはできません。どんな助けでも大歓迎です!
("
//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