jquense / react-big-calendar

gcal/outlook like calendar component
http://jquense.github.io/react-big-calendar/examples/index.html
MIT License
7.84k stars 2.23k forks source link

Would like to provide a way to control the display of the + (count) button #2277

Open Liu7i-67 opened 2 years ago

Liu7i-67 commented 2 years ago

Clear and concise description of the problem

Under the month view of the calendar, it currently automatically calculates how many events can fit in a date cell and displays the + (count) button only when it exceeds this value, but this calculation becomes inaccurate if the style of the events is modified.

e.g. It automatically calculates that a cell can hold 4, but in reality it can only hold 3.

would like to provide a props to set how many events can fit in a cell

Suggested solution

Add a props to control the maximum number of events displayed in the monthly view on a given day, beyond which a +(count) button will be displayed

e.g. if you set this parameter to 3, the +(count) button will not be displayed when there are 3 events on a given day, and when there are 4 or more events on a given day, the first two events and the +(count) button will be rendered

Alternative

Additional context

image

Validations

Would you like to open a PR for this feature?

aditya-shelke99 commented 2 years ago

Hey there, Is this a beginner friendly issue. I want to work on this. I know react and I'm new to open source. So should I go ahead and directly start working on solution or there are some prerequisites

lsh595254962 commented 4 months ago

还没有解决吗

cutterbl commented 4 months ago

@lsh595254962 No one has filed a PR, no.