How to show only relevant weeks in PrimeNg's p-calendar?

460 views Asked by At

I'm using the inline version of p-calendar and in several month a redundant week is shown on the calendar (image attached on this link)

I'm using p-calendar in the following way:

  <p-calendar [(ngModel)]="currentTime" [minDate]="minDate" [maxDate]="maxDate" placeholder="all"
              [locale]="'general.time.calendar.lang-definitions' | translate" [selectOtherMonths]="true"
    class="my-calendar" [showIcon]="true" [defaultDate]="serverLocalTime" [showButtonBar]="true"
    [inline]="true" clearButtonStyleClass="calendar-hide-button" todayButtonStyleClass="calendar-today-button">
<p-footer>
   <!-- Something -->
</p-footer>

Does anyone knows how to make p-calendar show only relevant weeks?

0

There are 0 answers