본문으로 건너뛰기

afterSelectionSet

설명

셀이 선택된 후 발생합니다

사용법

afterSelectionSet: (cell: string) => void;

매개변수

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

  • cell - (필수) 셀의 id(들)

예제

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

// "afterSelectionSet" 이벤트 구독
spreadsheet.events.on("afterSelectionSet", function(cell){
console.log("The cells " + spreadsheet.selection.getSelectedCell() + " are selected");
console.log(cell);
});

관련 문서: 이벤트 처리