nhn / toast-ui.react-calendar

TOAST UI Calendar wrapper for React.js
MIT License
168 stars 43 forks source link

How can i set background color on clicked date on month view with onBeforeCreateSchedule and without useCreationPopup #40

Open naramdash opened 4 years ago

naramdash commented 4 years ago

Version

"@toast-ui/react-calendar": "^1.0.5", "tui-calendar": "^1.12.13"

Test Environment

windows 10 pro 2004 microsoft edge 84

nodejs 12 nextjs 9.3.6 react 16.13.1

Current Behavior

as title, How can i paint background color only clicked Day cell in month view without using useCreationPopup? because, i dont want to make default creation popup onClick event

using guide param in onBeforeCreateSchedule to achieve this is impossible. using getRootElement too.

Expected Behavior

adding selectedDate prop in Calendar will be best. But if there's another way, please share it. thank you!

cds88 commented 4 years ago

I have the same problem. This calendar has some sort of bug, because you cant literally just click and focus on a single tile. You get guideElements object in onBeforeCreateSchedule, but there is no indication how many tiles are focused.

jinsol-htbeyond commented 4 years ago

I also have the same problem. i think it need to more various theme props.