Custom Calendar component with disabled days support

Hey Retool Community! :wave:

We at PlatformVisions ran into a common challenge: the default Calendar component doesn't support disabling specific days. After searching for workarounds and coming up empty, we decided to build our own solution.

What we built: A custom calendar module that allows you to:

  • Displays weeknumbers
  • Disable specific custom dates
  • Disable weekends by default (or any recurring pattern)
  • Disable previous dates
  • Still returns the selected date just like the standard component

We know we're not the only ones who've needed this functionality, so we wanted to share it with the community.

Would this be useful for your projects? We're curious to hear if others have encountered this limitation and whether a solution like this would help your workflows. Happy to discuss implementation details or potential improvements!

5 Likes

How do I obtain the cool calendar component?

1 Like

@swaggerutah

If you could send me a DM with your e-mail, i’ll make sure to forward it to you!

Really cool! Thanks for sharing!

I’ve been considering a custom component myself, just curios, which library are you using for the calendar?

It would be sweet to give it an alternate list of ALLOWED dates.

We just added some JS code ourself that uses the moment library!

1 Like