Can you please help with an example of loading labels from a remote JSON or CSV to show on Range Calendar? Thanks
Hi @Max_B
Good question
Initially pass labels: []
to the settings, than fetch the data, update the labels and redraw the calendar, e.g:
var inst = $('#mycal').mobiscroll('getInst');
$.getJSON('/ext/mobiscroll/test/data.json', function (data) {
inst.settings.labels = data;
inst.redraw();
}
If you’d like to load the labels dynamically only for the displayed month, you can do that inside the onPageLoading
event. Here are some examples for marked days, with labels should be the same.
Thanks @Zsombor ! Worked like a charm.