Our powerful JS Calendar component


Post by tokytok »

Hi,
I need to update local state each time current date view changed.
I need to implement dateChange function but I don't know how.
Is it the good event ?
https://www.bryntum.com/docs/calendar/#Core/widget/CalendarPanel#event-dateChange
I put the event like this but it does not work :

listeners: {
    dateChange: ({ value }) => console.log(value)
}

But no log on the console.


Post by Animal »

The Calendar is not a CalendarPanel.

That is a base class for simply displaying a month orientated block of days. It is used as the base class of a calendar MonthView, but the Calendar itself is not one. It is a subclass of a normal Panel which acts as an aggregator for all those different views.

I believe the event you are after is https://www.bryntum.com/docs/calendar/#Calendar/view/Calendar#event-dateRangeChange


Post Reply