air-datepicker
air-datepicker copied to clipboard
onChangeMonth not triggering when month is changed using top dropdown menu
onChangeMonth: function (month, year) { console.log('i am not triggering when you change month using top dropdown'); }
also moveToOtherMonthsOnSelect does not trigger month change.
Hmmm, need to think bout this, I suppose there were some problems with this behaviour.
Thank you @t1m0n
Ideally we have to trigger onChangeMonth whenever we change the month using
- pre/next button (this is working)
- Dropdown selection (not working)
- if user is on different month and click on today button (not working)
- etc
Hey @t1m0n,
Is there any update on this? Still can't get the function to run.
Thanks
Здравствуйте! У меня, видимо, этот же вопрос. Или можно как-нибудь получить в событии "onChangeView" выбранный месяц? При условии (view == 'days') конечно же.
В общем-то решил проблему.
В событии "onChangeView" получаю "currentDate":
var dp = $('#calendar').datepicker().data('datepicker'); var selDate = dp.currentDate;