Hi,
we would like to use the easyui-calendar widget to show a calendar within our app and also mark dates that are taken/have events on that day. When loading the data first and than initilazing the calendar widget it works fine, but when we need to fetch more/new data based on calendar navigation events we can't await for that data to be returned before the formatter and validator method are called.
The only way to achieve this atm that we can see is to load all the data from the database before initializing the calendar widget which is not optimal at all since there are way too many records that would need to be retrieved at that point and would make the load time much slower.
What would be nice is to be able to specify a url property to the calendar in the same way we can do it to the datagrid, which would than get called everytime an onNavigation event is fired and/or even on click but for on click we can hanlde that our self.
//example code
$("#mycalendar").calendar({
url: 'remoteCalendarData.php',
onSelect: function(date){
console.log(`onSelect`, date);
},
formatter: function(date) {
return date.getDate();
}
});
Does anyone have any suggestions for this or should we switch to something like fullcalendar for even calendars and stick to easyui for simple form and grid stuff ?