If you follow this tutorial:
https://code.daypilot.org/69423/vue-js-scheduler-build-a-reservation-application-in-5-minut
you will be able to access the DayPilot.Scheduler object as "this.scheduler". It's a computed property defined like this:
computed: {
// DayPilot.Scheduler object
// https://api.daypilot.org/daypilot-scheduler-class/
scheduler: function () {
return this.$refs.scheduler.control;
}
},
You can use it to invoke the DayPilot.Scheduler methods (https://api.daypilot.org/daypilot-scheduler-methods/), including exportAs():
methods: {
schedulerExport(): function() {
this.scheduler.exportAs("svg").download("scheduler.svg");
}
},