question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom show more value and path

See original GitHub issue

Currently, the calendar auto-calculates the space for each day and shows the +x show more link that opens a popup, when X is the number of remaining events in that day.

I have a different use case: I got X events from the API for each day, is the number of events is greater than 3 I want to display the first 2 in the list and add the +x show more link pointing to a specific URL (a page not related to the calendar’s page that will display all events in a list).

Is it possible? I was looking at the codebase and realized the +x show more is not a component that I can customize by myself, also I didn’t find any prop that I can pass to accomplish what I need.

I really like the library, you did a great work with it. But since all I need is the Month view with a custom +x show more link, I think I will need to build my own set of components to do it if what I need is not possible to do with react-big-calendar.

Thank you in advance,

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

2reactions
victorvareniccommented, Feb 19, 2020

I’m looking for this feature.

0reactions
pietrofxqcommented, May 26, 2021

It is possible to create a custom value:

<BigCalendar messages={{ showMore: (count) => 'custom show more'}} />

however the slot events are not passed as argument in this function, so it is not possible to show a custom value individually. I created a PR to fix this https://github.com/jquense/react-big-calendar/pull/1943

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Create a Custom Path in Salesforce - YouTube
Add or adjust the picklist values as needed. The added picklist value shows in the path. Note that if you have more than...
Read more >
Configure the Last Path Step - Salesforce Help
In the Object Manager, find the object that your path is based on. Click Fields and Relationships. Next to the field your path...
Read more >
Enable Salesforce Path In 6 Easy Steps
Path can be based on any picklist field (the picklist values will display from left to right, following how they are ordered in...
Read more >
Visual Studio - Where to define custom path macros?
Click in the main menu "View", then "Property Manager"; Right-click in the empty space of "Property Manager" window and in the pop-up menu...
Read more >
Using CSS custom properties (variables) - MDN Web Docs
Custom properties allow a value to be stored in one place, then referenced in multiple other places. An additional benefit is semantic ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found