Printing & PDF Export
The event calendar includes print optimized styling through the print add-on. This needs to be added to the download package or installed separately from a dedicated NPM package.
Print styling is applied when someone prints the page that contains the calendar. In addition to that, you can call the print method on the instance which grabs only the markup of the calendar, places it onto a temporary page and calls the browsers printing function. This is especially useful when you want to add a button to only print the calendar rather than the whole page.
Besides printing, PDF export is possible through the print dialog of the browser.
Demo
By calling the print method, the calendar will open a new window and print its content.
var inst = mobiscroll.eventcalendar('#mycalendar', {
modules: [mobiscroll.print]
});
document.getElementById('print-button')
.addEventListener('click', function () {
inst.print();
}); 
mobiscroll.setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
});
var inst = mobiscroll.eventcalendar('#demo-printing-the-view', {
clickToCreate: ,
dragToCreate: ,
dragToMove: ,
dragToResize: ,
eventDelete: ,
modules: [mobiscroll.print],
});
mobiscroll.getJson(
'https://trial.mobiscroll.com/events/?vers=5',
function (events) {
inst.setEvents(events);
},
'jsonp',
);
document.getElementById('print-button').addEventListener('click', function () {
inst.print();
});
<button id="print-button" mbsc-button>Print calendar</button>
<div id="demo-printing-the-view"></div>