We have implemented an editable Scheduler, and we need to make a development related to the selection of events within the calendar. We need support to know how to consult the events that are selected, and how to detect selection changes in these, in order to mantain a list of "active selections".
We are not able to find where is stored the information about which events are selected. We have found information about overloading the Scheduler prop editItem with a CustomEditItem and overriding this event to detect when a task is selected.
const handleClickAction = (event) => [
{
type: event.syntheticEvent.shiftKey
? ITEMS_SELECT_ACTION.add
: ITEMS_SELECT_ACTION.select,
},
];
With this we could detect when a certain event is selected. But we are still missing the part about when they are unselected. If we click outside the events, we get the selection removed, but we have no way to detect the event of this, and therefore we can't update our list of selections.
Can you give us support on how we can get the information about the selections, and keep it updated at all times? Thank you,