2017-09-26 4 views
1

「Excelにエクスポート」ボタンのツールチップ名を変更したいと思います。私は角度指示(ngグリッド)を持っています。ディレクティブの設定は次のとおりです。グリッドのツールチップを変更するには

var defaultConfig = { 
            dataSource: { 
              dataPath: "gridCtrl.getFilteredData(true)", 
              deep: false, 
             }, 
            bindingOptions: { 
              dataSource: { 
                dataPath: "gridCtrl.getFilteredData(true)", 
                deep: false, 
               }, 
              columns: "gridCtrl.getColumns()" 
             }, 
            remoteOperations: false, 
            focusStateEnabled: true, 
            hoverStateEnabled: true, 
            allowColumnReordering: true, 
            editing: { editEnabled: false }, 
            paging: { enabled: true, pageSize: 25 }, 
            pager: { showPageSizeSelector: true, allowedPageSizes: [10, 25, 50, 100] }, 
            filterRow: { visible: true, applyFilter: "auto" }, 
            sorting: { mode: "multiple" }, 
            searchPanel: { width: 240, placeholder: $i18n.translate("lbl_search") }, 
            headerFilter: { visible: true }, 
            groupPanel: { visible: true, allowColumnDragging: true, emptyPanelText: $i18n.translate("txt_arrastrar_columna") }, 
            allowColumnResizing: true, 
            columnAutoWidth: false, 
            columnChooser: { enabled: false, emptyPanelText: $i18n.translate("lbl_hide_columns_here"), title: $i18n.translate("lbl_column_chooser") },           
            rowAlternationEnabled: true, 
            showExpandAll: false, 
            summary: { 
              totalItems: [{ 
               column:0, 
               summaryType:"count", 
               customizeText: function (resourceInfo){ return $i18n.translate("lbl_total_items")+": "+resourceInfo.value; } 
              }] 
             }, 
           }; 

enter image description here

私は変更したいツールチップは、「Excelにエクスポート」です。

ありがとうございます!!!

+0

下の画像で見ることができるようにあなたが

$("#datagrid").dxDataGrid({ "export": { "enabled": true, "fileName": "DataGridCusomText", "texts": { "exportAll": "Export everything", "exportSelectedRows": "Export only selected", "exportTo": "Export to excel or word" } } }); 

以下のサンプルコードで見ることができるように、このためにエクスポート/テキストを使用して話していると思います私はここに答えを作るのに十分な情報はないと思う。グリッドの背後にあるコードは何ですか? HTMLはどうですか?グリッドテンプレートはどうですか? – theGleep

答えて

1

私はあなたがについてdxDataGridあなたが

enter image description here

+0

ありがとう!!それはまさに私が探していたものです。 – ABT

関連する問題