toast-ui.react-calendar
toast-ui.react-calendar copied to clipboard
Is there any way from which I can take the position of each schedule? I want to enter a pop over schedule on click.
Expected Behavior
I want to enter a custom pop over schedule on click.
In the schedule click event handler, you can get the schedule element and then position it with getBoundingClientRect().
const onClickSchedule = useCallback((e) => {
const { calendarId, id } = e.schedule;
const el = cal.current.calendarInst.getElement(id, calendarId);
console.log(e, el.getBoundingClientRect());
}, []);