Перейти к основному содержимому

exportToPNG

Description

Экспортирует Scheduler в PNG-формат

exportToPNG: (export?: any) => void

Parameters

  • export - (optional) объект - объект с настройками экспорта (см. детали)

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>  

Для дополнительной информации смотрите статью Экспорт в PNG.

The exportToPNG() method takes as a parameter an object with a number of properties (all the properties are optional):

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.