nhn / toast-ui.react-calendar

TOAST UI Calendar wrapper for React.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any way from which I can take the position of each schedule? I want to enter a pop over schedule on click.

tourlida opened this issue · comments

Expected Behavior

I want to enter a custom pop over schedule on click.
CustomTooltip

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());
  }, []);