【问题标题】:handsontable - Change cell borders dynamicallyhandsontable - 动态更改单元格边框
【发布时间】:2018-03-25 23:29:43
【问题描述】:

我使用 Handsontable ,我设法在特定单元格(行、单元格)上动态添加边框单元格。

但我无法在之后动态删除/删除它。

我正在寻找解决方案。

感谢您的帮助

【问题讨论】:

    标签: border cell handsontable


    【解决方案1】:

    我找到了解决办法

    我分享它:

    function cell_no_border(hot, row, col) {
    
    var bordersMeta = hot.getCellMeta(row, col).borders;
    if(bordersMeta != null){
        bordersMeta.top.hide = true;
        bordersMeta.bottom.hide = true;
        bordersMeta.left.hide = true;
        bordersMeta.right.hide = true;
    }
    
    var className = 'border_row' + row + 'col' + col;
    removeBordersFromDom(className);
    

    }

    【讨论】:

      猜你喜欢
      • 2015-12-01
      • 1970-01-01
      • 2020-04-13
      • 1970-01-01
      • 2015-09-26
      • 2016-02-11
      • 1970-01-01
      • 2013-10-30
      • 2021-03-14
      相关资源
      最近更新 更多