跳到主要内容

groupFill

描述

在自动填充单元格时触发

用法

groupFill: (focusedCell: string, selectedCell: string) => void;

参数

事件的回调函数接受以下参数:

  • focusedCell - (必填)当前获得焦点的单元格 id
  • selectedCell - (必填)已选中单元格的 id

示例

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {});
spreadsheet.parse(data);

// 订阅 "groupFill" 事件
spreadsheet.events.on("groupFill", function (focusedCell, selectedCell) {
console.log(focusedCell, selectedCell);
});

相关文章: 事件处理