nhn / toast-ui.react-calendar

TOAST UI Calendar wrapper for React.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how can i custoize useDetailPopup useCreationPopup ui templete in ReactJs?

shakil-brl opened this issue · comments

Version

Type definitions for TOAST UI Calendar v1.15.3
TypeScript Version: 3.2.1

  calendarInstRef.current.on("clickSchedule", function (event) {
    alert(JSON.stringify(event.schedule));
    var schedule = event.schedule;
  });

how can I pass html or overtight this ui
I am using react and nextjs now I want to customize this useDetailPopup with different HTML/CSS UI ,

Expected Behavior

image

@shakil-brl
It doesn't have an option to customize the default popup.
But you can make your own popup and handle it on certain events.
Please refer to this comment.

nhn/tui.calendar#812 (comment)

image
@adhrinae

How can i get this position style in clickSchedule ?
calendarInstRef.current.on("clickSchedule", function (event) { alert(JSON.stringify(event.schedule)); var schedule = event.schedule; //setShow(true); **HERE** });

https://nhn.github.io/tui.calendar/latest/Calendar#event-clickSchedule

There's an event property. so that you can access the native MouseEvent. Get the coordinates from that event.

image
How can I customize this section with custom html elements
Thank you for your help

@shakil-brl

There are only 'week.timegridSchedule.borderRadius' and 'week.timegridSchedule.paddingLeft' properties in theme options. you can modify them. and Try to override CSS of tui-full-calendar-time-schedule class and their children. you can find them with the browser devtools.