I am looking at the documentation here:
https://code.daypilot.org/73551/html5-scheduler-pdf-export-javascript
This piece of code appears under the heading: Export a Time Range.
var image = dp.exportAs("jpeg"
This fails with an error message: TypeError: exportAs is not a function.
What is the correct method please?
The exportAs() method is available in the Scheduler (DayPilot.Scheduler object) since version 8.2.2117.
Note that it's not available for the other controls yet (Calendar, Month, Gantt...).
Let me know if it still doesn't work.
Thank you Dan. Using .scheduler.exportAs("jpeg" appeared to work, but there is no clue as to where the exported data will end up.
The exportAs() method returns an Export object. You need to call one of its methods to get the result data, e.g.:
etc.
See also: https://doc.daypilot.org/scheduler/client-side-jpeg-export/
Forget that last comment. Was able to download the image once it had been created.