How to set p-calendar Properties numberOfMonths backward

UI Components for Angular
Post Reply
Posts: 1
Joined: 01 Dec 2020, 09:39

01 Dec 2020, 09:54

I have the problem order show months i would like to show backward, (So now will start show date Current and next more 3 months.)

Example : Nov, Dec, Jan, Feb

But I would like to to show backward like This,
Example : Aug, Sep, Otc, Nov

<p-calendar class="period-input-date align-lg" [readonlyInput]="true" inputId="range" [numberOfMonths]="4" dateFormat="dd/mm/yy"
[inline]="false" [(ngModel)]="rangeDates" selectionMode="range" (onSelect)="handleOnSelect($event)">

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests