Open gandhyonly opened 7 years ago
Hi, refer to #103 there's an example, use it with the event yearChanged instead of dataSource
Why? Well it's somehow better because the event yearChange will be activated in the first run, other way to do it is instead of dataSource use its respective event like:
$('#calendar').data('calendar').setDataSource(getMyData());
Note: the way of the example load data per year, and you should do it that way of filtering, because that way you won't burden all the possible event of past and future years, you'll probably think it's not much but believe after a few months client will be go crazy creating events.
Note2: yearChanged it's avalaible at this repo and not at the release.
I create year calendar but it's not working on first load. If I change year and data source will load completely.
if I console.log(calendar) dataSource variable already set. and If I write dataSource manually (without ajax) it will work perfectly did you know what's wrong about it?