-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat(time-grid): allow consumer to set allDayMaxRows (#2386) #2393
feat(time-grid): allow consumer to set allDayMaxRows (#2386) #2393
Conversation
@fornesarturo First pass looks like it might be good, but we would need a story in storybook for the new prop, and showcasing how it works. |
ad8100c
to
df9e14c
Compare
@cutterbl added story for the new prop and updated the API mdx to include it as well |
@fornesarturo Thanks. I'll try to load this up and take a look over the weekend maybe. |
Anything missing to have this merged? |
@fornesarturo Finally got a chance to look at this, this morning. With an |
@fornesarturo A deeper look at the failing 'show more' functionality shows that the |
@cutterbl I see that first part as the usual behavior for the On an implementation using react-big-calendar with these changes I am getting a call to the onShowMore function, since I'm working off of that call it worked for my case. I see that what the Month view currently does is it defines the overlay there, it's not something central, I could add the functionality to TimeGrid following Month view's approach, per the commits that seems like an intentional exception:
I see the differences in notifying the onShowMore prop here where it sends the parameters as an array, so that I can change quickly. Let me know your thoughts. |
@cutterbl Added changes to handle overlay and update the |
@fornesarturo I loaded your changes and brought up storybook. Still not getting the popup with the |
@fornesarturo Still not getting the popup, but I do see multiple console warnings
|
882b61f
to
f26b0ce
Compare
@cutterbl Hi, just updated to correctly display the popup, and fixed propTypes to make sense with settings across the repo. |
f26b0ce
to
0aca381
Compare
@fornesarturo This is better. Now I get the popup, and with no popup I get the click through to 'Day' view. Now the only thing I see is the row count. With an |
0aca381
to
82d29e2
Compare
@cutterbl row count is fixed now and displays the number of rows for events specified. |
* Add support for displaying Show more text in TimeGrid views via allDayMaxRows prop. * Prevent Background cells from capturing click on show more button.
…for TimeGrid views * Add overlay logic in TimeGrid. * Set min-width in TimeGrid to prevent UI distortion in Day view. * Change handleShowMore parameters and arguments for notify call. * Change allDayMaxRows prop to reflect only event rows, not include the show more button row. * Prevent empty level in slotMetrics when showMore button is present.
82d29e2
to
0dbe34d
Compare
🎉 This PR is included in version 1.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
In this commit: