如何更改我的 ng 网格中的工具提示

How can I change the tooltips in my ng grid

我想更改按钮中的工具提示名称 'Export to Excel'。我有 angular 指令(ng-grid)。指令配置是:

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; }
                                            }]
                                        },
                                }; 

我要更改的工具提示是'Export to Excel'。

提前致谢!!!

我想你是在谈论 dxDataGrid 所以使用 export/texts 正如你在下面的示例代码中看到的那样

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

如下图所示