跳到主要内容

afterFocusSet

描述

在单元格获得焦点后触发

用法

afterFocusSet: (cell: string) => void;

参数

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

  • cell - (必填)单元格的 id

示例

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

// 订阅 "afterFocusSet" 事件
spreadsheet.events.on("afterFocusSet", function(cell){
console.log("Focus is set on a cell " + spreadsheet.selection.getSelectedCell());
console.log(cell);
});

相关文章: 事件处理