본문으로 건너뛰기

afterAction

설명

액션이 실행된 후 발생합니다

사용법

afterAction: (action: string, config: object) => void;

매개변수

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

  • action - (필수) 액션의 이름. 사용 가능한 액션의 전체 목록은 여기를 참조하세요.
  • config - (필수) 액션의 매개변수를 포함한 객체

예제

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
// config 매개변수
});
spreadsheet.parse(dataset);

spreadsheet.events.on("afterAction", (actionName, config) => {
if (actionName === "sortCells") {
console.log(actionName, config);
}
});

변경 로그: v4.3에서 추가됨

관련 문서: