且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

handsOnTable单元格着色

更新时间:2023-01-25 20:35:12

主页为您提供了一个很好的示例:

The homepage provides a good example for your purpose:

http://handsontable.com/demo/renderers.html

只需修改条件(在本例中为上/左角)即可.

Just modify the condition (in this case upper/left corner).

cells: function (row, col, prop) {
  if (row === 0 && col === 0) {
    return {type: {renderer: greenRenderer}};
  }
}

您完成了.