I want to disable the dragging of events in the Calendar.
This listeners configuration doesn't work.
<BryntumCalendar
eventsVersion={eventsVersion}
height={800}
hideHeaders={true}
sidebar={false}
weekStartDay={1}
modes={{
agenda: null,
year: null,
week: null,
day: null,
month: {
eventRenderer: (props) => __renderCustomEvent(props),
},
}}
tbar={null}
date={month}
events={events}
listeners={{
// Async event listeners allowing you to veto drag operations
beforeDragMoveEnd: ({eventRecord}) => {
console.log("A");
console.log(eventRecord);
// Return true to accept the drop or false to reject it
return false;
},
beforeDragResizeEnd: ({eventRecord}) => {
console.log("B");
console.log(eventRecord);
// Return true to accept the drop or false to reject it
return false;
},
beforeDragCreateEnd: ({eventRecord}) => {
console.log("C");
console.log(eventRecord);
// Return true to accept the drop or false to reject it
return false;
}
}}
/>