How to change labels dynamically

hey,

I would like to know if there is a way to change labels dynamically onMonthChange for example. I’ve seen that there is an option for marked and colors (inst.settings.marked) which I can set and works perfectly fine. But I want to make use of labels and tried inst.settings.labels, but that doesn’t work. Any ideas?

Thank you in advance for any help.

best regards, Will

I found the solution. For anyone interested:

For inst.settings.labels to work dynamically, labels have to be initialized in the beginning - like:

calendar = $('#demo').mobiscroll().eventcalendar({
    ...
    labels: [],
    ...
2 Likes