본문으로 건너뛰기

destructor

Description

Gantt 인스턴스를 파괴합니다

destructor: () => void

Example

const myGantt = Gantt.getGanttInstance();

//gantt 인스턴스를 파괴합니다
myGantt.destructor();

Details

이 메서드는 간트 인스턴스를 정리하고 onDestroy 이벤트를 트리거합니다.

destructor가 호출되면 다음 작업이 수행됩니다:

  • 간트 인스턴스에 로드된 모든 데이터를 삭제합니다
  • 간트에 연결된 dataProcessor가 있다면 제거합니다
  • 간트를 DOM에서 분리합니다
  • event 메서드를 통해 추가된 모든 DOM 이벤트 핸들러를 제거합니다
노트

다중 인스턴스 생성을 허용하지 않는 패키지(GPL 또는 개별 에디션)를 사용하는 경우, gantt 소멸자를 호출하면 페이지를 새로 고침할 때까지 gantt에 접근할 수 없게 됩니다.

Change log

  • 버전 5.1에 추가됨
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.