【问题标题】:How to change the handsontable context menu language如何更改可动手操作的上下文菜单语言
【发布时间】:2015-12-26 08:13:09
【问题描述】:

有谁知道是否可以更改 HOT 默认上下文菜单语言?还是我必须创建一个做同样事情的自定义菜单?

我在网上找不到任何关于它的信息。

谢谢, 卢卡斯

【问题讨论】:

    标签: handsontable


    【解决方案1】:

    您已使用updateSettings 来更改初始化后的上下文菜单配置。

      container = document.getElementById('example3');
    
      settings = {
        data: getData(),
        rowHeaders: true,
        colHeaders: true
      };
      HT = new Handsontable(container, settings);
    
      HT.updateSettings({
        contextMenu: {
          items: {
            "row_above": {
              name: 'insérer une ligne au-dessus',
            },
            "row_below": {
              name: 'Insérer une ligne ci-dessous',
            },
            "remove_row": {
              name: 'supprimer une ligne',
            }
          }
        }
      })
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-10
      相关资源
      最近更新 更多