loading…
Init calendar
%STARTSECTION{"init"}%
<literal>
<script>
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar1');
var calendar = new FullCalendar.Calendar(calendarEl, {
initialView: 'dayGridMonth'
});
calendar.render();
});
</script>
</literal>
%ENDSECTION{"init"}%
JSON events
[
{
"id": 1,
"title": "Event1",
"start": "Nov 21 2024",
"allDay": true
},
{
"id": 2,
"title": "Workingday",
"start": "Nov 21 2024 08:30:00",
"end": "Nov 21 2024 15:00:00",
"allDay": false
}
]