Hi,
Is there an event listener for click at Agenda modes?
I need to call some method on click.
Thanks
That menu is this: https://bryntum.com/products/calendar/docs/api/Calendar/widget/AgendaView#property-listRangeMenu
You can add event listeners.
But what is the underlying app requirement?
To change some UI when the view loads new data?
I tried a few events and those did not work for me. Could you please point me to an event that I can use? For example, onActiveItemChange is not working for Agenda mode and onDateRangeChange does no have a new value.
We need it to save/restore the default Agenda mode remotely.
We use Calendar property modeDefaults
modeDefaults={{ range: activeCalendarAgendaMode }}
to load active view on load. We need an event where we can send HTTP request to save a new default value.
See this codepen: https://codepen.io/Animal-Nige/pen/ZEPXgoM?editors=0010
I cannot parse this: "I need a new mode name, so I can save it to use as a default on the next load."
Agenda has no "mode". AgendaView is nothing but a Grid with a single column and an extremely fancy cell renderer.
Agenda just has a range: https://bryntum.com/products/calendar/docs/api/Calendar/widget/AgendaView#property-range
From the codepen: