1

私はこの 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
4

2 に答える 2

0

ボタンのラベルを変更してみましたか?

dijit.byId('print_button').set('label', 'Export')?
于 2013-08-26T13:47:52.677 に答える