본문으로 건너뛰기

afterFocusSet

설명

셀에 포커스가 설정된 후 발생합니다

사용법

afterFocusSet: (cell: string) => void;

매개변수

이벤트의 callback은 다음 매개변수를 받습니다:

  • 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);
});

관련 문서: 이벤트 처리