Hiding Specific Days Of The Week


In Pie Calendar, you can use this simple JavaScript snippet to hide specific days of the week. Note the [0,6] array which contains the numerical value of the days you want to hide. In this case, it will hide Sunday (0) and Saturday (6) from all calendar views.

var ready = (callback) => {
  if (document.readyState != "loading") callback();
  else document.addEventListener("DOMContentLoaded", callback);
}

ready(() => { 
  window.calendar.setOption('hiddenDays', [0,6]);
});
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.