Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Month view - eventPropGetter is called multiple times with same event for multi segment event #2671

Open
5 tasks done
Vity01 opened this issue Oct 21, 2024 · 0 comments
Open
5 tasks done
Labels

Comments

@Vity01
Copy link

Vity01 commented Oct 21, 2024

Check that this is really a bug

  • I confirm

Reproduction link

http://N/A

Bug description

The current implementation of eventPropGetter is invoked each time part of the event is rendered (eg. when it's splitted into multiple rows (consists of multiple segments), which is technically OK, but there is no way how to determine which segment is rendered.
I would like to use styling for each of these segments. I would like to style them separately to be able to implement partial day events (eg. 7.5 days long event).

image
There is 1 event with 2 segments on that picture, but I would like to make the second one shorter.

Expected Behavior

eventPropGetter should contain additional parameters to determine segment

EvenTCell:
image

Actual Behavior

There is no way how to define styling for each segment of the event in the month view.

react-big-calendar version

1.15

React version

18

Platform/Target and Browser Versions

Firefox > 110

Validations

  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a react-big-calendar issue and not an implementation issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@Vity01 Vity01 added the bug label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant