跳到主要内容

exportToICal

Description

将甘特图数据导出为 iCal 字符串

exportToICal: (export?: any) => void

Parameters

  • export - object - optional, 一个包含导出设置的对象(请参阅详情)

Example

gantt.exportToICal({
server:"https://myapp.com/myexport/gantt"
});

Details

注释

此方法在 export 扩展中定义,因此需要激活 export_api 插件。请在 Export/Import for Excel, Export to iCal 文章中阅读详细信息。

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

exportToICal() 方法接受一个可选的对象,包含以下属性:

  • server - (string) 设置请求的 API 端点。可以与导出服务的本地安装一起使用。默认值为 https://export.dhtmlx.com/gantt;
  • name - (string) 允许为文件指定自定义名称和扩展名,但文件仍将以 iCal 格式导出。 查看示例.
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.