javascript – 如何在ExtJs中更改拖放工具提示文本?

我有两个网格,我在这里定义拖放插件,如下所示:

plugins: {
        ptype: 'gridviewdragdrop',
        dragGroup: 'secondGridDDGroup',
        dropGroup: 'firstGridDDGroup'
    },

现在,当我将一个项目从一个网格拖到另一个网格时,我看到文本“1个选定的行” – 如何更改此文本?

最佳答案 使用
dragText配置:

The text to show while dragging.

Two placeholders can be used in the text:

  • {0} The number of selected items.
  • {1} ‘s’ when more than 1 items (only
    useful for English).

Defaults to: ‘{0} selected row{1}’

点赞