본문으로 건너뛰기

exportToJSON

Description

Gantt 차트의 구조와 데이터를 JSON 객체로 내보냅니다

exportToJSON: (config?: any) => void

Parameters

  • config - 객체 - 선택적; Gantt 구성 정보가 포함된 객체

Example

gantt.exportToJSON({
name:"gantt.json"
});

Details

노트

note 이 메서드는 export 확장 기능의 일부이므로, export_api 플러그인이 활성화되어 있는지 확인하세요.

노트

참고: Gantt 버전이 8.0 미만인 경우 온라인 내보내기 서비스를 활성화하려면 페이지에 https://export.dhtmlx.com/gantt/api.js를 포함해야 합니다, 예:

<script src="codebase/dhtmlxgantt.js"></script>
<script src="https://export.dhtmlx.com/gantt/api.js"></script>

config 객체는 다음 옵션을 지원합니다:

  • name - 내보낼 JSON 파일의 이름
  • data - (array) 내보낼 작업 목록. 지정하지 않으면 전체 Gantt가 내보내집니다
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.