toast-ui.react-calendar icon indicating copy to clipboard operation
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.

Open tourlida opened this issue 5 years ago • 1 comments

Expected Behavior

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

tourlida avatar Sep 21 '20 18:09 tourlida

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

jungeun-cho avatar Sep 24 '20 01:09 jungeun-cho