fullcalendar / fullcalendar-react

The official React Component for FullCalendar
https://fullcalendar.io/docs/react
MIT License
2.09k stars 110 forks source link

customButtons question - not a bug/feature request #151

Closed mparisi76 closed 3 years ago

mparisi76 commented 3 years ago

Hi, please don't delete, this is not a bug.

First off, thanks for a great calendar component. Saved a lot of time. I do have one question about customButtons prop. Is there a reason that customButtons doesn't accept react component(s)? Quite a bit of flexibility is lost with the current implementation.

The use case I have, is 3 buttons in the header right spot, "Month", "Week", and "Day". I need to have the active button a different color than the others. There currently isn't an easy way to do this without some javascript workarounds.. Also, each of those buttons changes the route url. If a user enters the url manually (/month, /week, /day), there is no easy way to change the state of the buttons to match the url route..

Apologies if this has been answered already.

Using version 5.4.0

Thanks in advance.

acerix commented 3 years ago

Please refer to the support page and use Stack Overflow for help.