跳转到主要内容

exportToPNG

Description

允许您将 Scheduler 导出为 PNG 图片

exportToPNG: (export?: any) => void

Parameters

  • export - (optional) object - 包含导出选项的对象(详情请见下文)

Example

scheduler.exportToPNG();

//或者
scheduler.exportToPNG({
name:"my_beautiful_scheduler.png"
});

scheduler.exportToPNG({
format:"A4",
orientation:"portrait",
zoom:1,
header:"<h1>My company</h1>",
footer:"<h4>Bottom line</h4>",
server:"https://myapp.com/myexport/scheduler"
});

Details

注释

此方法属于 export 扩展,因此请确保在页面中引入该扩展:

<script src="https://export.dhtmlx.com/scheduler/api.js"></script>  

更多信息,请参阅 Export to PNG 文章。

exportToPNG() 方法接受一个包含多个可选属性的对象:

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.