I'm using a JavaScript library to display a calendar with events on my website.
The followings are the settings required:
$('#evoCalendar').evoCalendar({
todayHighlight: true,
sidebarToggler: true,
eventListToggler: true,
canAddEvent: false,
calendarEvents: calEvents,
onSelectDate: function() {
// console.log('onSelectDate!')
},
onAddEvent: function() {
console.log('onAddEvent!')
}
});
calEvents is $.getJSON("JSON URL", function(json) {});
but events are not displayed, meanwhile, if I hard-code the JSON as value of calendarEvent, everything works as expected.
This is how my JSON looks like:
[
{
"name":"Leap day",
"date":"February/29/2020",
"type":"holiday",
"everyYear":true
}
]