I need to change the fullcalendar header as each month is selected -
I need to change the header as every month is selected, it contains the text from the database, so we can use AJAX I am talking about, which I am familiar with. I just need to know the incident which is starting in the change of the month and the month / year is also being loaded.
eventAfterAllRender callback option is your best bet
This is a small demo:
When all event rendering ends (which is changed at any time in a month, day or week), it converts the current date into a string and changes it Lets headline text with it.
var dateChanged = function () {var currentDate = $ ("# calendar"). FullCalendar ('getDate'); Console.log (CURRENTDATE); $ ('.fc-toolbar .fc-left-h2'). Text (currentDate.format ()); } Var $ fc = $ ("# Calendar"). FullCalendar ({eventAfterAllter: date changed,}); Not super solid, but you should be able to fit it to your needs.
Comments
Post a Comment