From my controller I'm trying to call exportAs().print() but I get an exception:
String expected
print @ schedule.controller.js?0afb:116
fn @ VM14359:4
callback @ angular.js?10a4:27341
$eval @ angular.js?10a4:18423
$apply @ angular.js?10a4:18523
(anonymous) @ angular.js?10a4:27346
dispatch @ jquery.js?eedf:5226
elemData.handle @ jquery.js?eedf:4878
The code is really simple:
print($event) {
$event.preventDefault()
let options = {
area: 'viewport'
}
try {
this.scheduler.exportAs('svg', options).download()
}
catch (e) {
console.error(e)
}
}
There is a similar issue reported one month ago in the forum but without response.
https://forums.daypilot.org/Topic.aspx/4064/uncaught-string-expected-error-when-export-shceduler-to-jpeg
Please advice for hints and workarounds. Printing/exporting is a critical feature in my application.
Could it be an issue with jquery / AngularJS?