angulartypescriptcalendarprimeng

Not working event in Angular p-calendar inline


I am using PrimeNG p-calendars inline. Now I can't use any event related to this component.

The version I am using for PrimeNG is:

    "primeng": "17.2.0",

and the code snippet I am using is this:

<p-calendar class="max-w-full" [(ngModel)]="filterCalendar" [inline]="true" [showWeek]="true" />

Some events are not working in this model onInput


Solution

  • I noticed that in this inline mode some events are not working because in normal mode calendar is displayed

    I noticed that in this case we can use onSelect event like this:

    <p-calendar class="max-w-full" [(ngModel)]="filterCalendar" (onSelect)="myFunc($event)"
                [inline]="true" [showWeek]="true" />
    

    Events like: onInput , onBlure , onFocus do not work for this mode.