Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

218
Views
How to disable previous month in Fullcalendar io?

How to disable the previous button when the previous month is less than the current month. For example, this month is March, therefore navigation previous month button must be disable.

I have read the documentation but until now this issue has not been resolved.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

What you need is the validRange option. This allows you to set limits on where the user can navigate to, and where events can be placed.

There's an example in that documentation of how you can prevent the user navigating before the current date - you need to make use of the version of the option which provides a callback function, into which fullCalendar will pass the current date. Simply specify the current date as the start of the valid range. If you don't specify an end date, then there will be no future limit on the dates the user can navigate to; it will only restrict dates in the past.

validRange: function(nowDate) {
  return {
    start: nowDate
  };
},

Live demo: https://codepen.io/ADyson82/pen/yLPQYxr

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!