본문으로 건너뛰기

beforeEditEnd

설명

셀 편집이 완료되기 전에 발생합니다

사용법

beforeEditEnd: (cell: string, value: string) => void | boolean;

매개변수

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

  • cell - (필수) 셀의 id
  • value - (필수) 셀의 값

반환값

셀 편집을 완료하려면 true를 반환하고, 편집기를 닫지 않으려면 false를 반환하세요

예제

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

// "beforeEditEnd" 이벤트 구독
spreadsheet.events.on("beforeEditEnd", function(cell, value){
console.log("Editing has started");
console.log(cell, value);
return true;
});

관련 문서: 이벤트 처리