p-fullcalendar prev next click capture

UI Components for Angular
Post Reply
zyx236
Posts: 4
Joined: 06 Feb 2019, 23:38

17 Feb 2019, 21:15

I am trying to capture the month and year when the "prev" or "next" buttons are clicked on the p-fullcalendar. I tried (viewRender)="myFunction($event)", but its not firing the myFunction. Anybody has any ideas? Thanks.

yigitfindikli
Posts: 449
Joined: 08 Aug 2018, 14:09

19 Feb 2019, 11:06

zyx236 wrote:
17 Feb 2019, 21:15
I am trying to capture the month and year when the "prev" or "next" buttons are clicked on the p-fullcalendar. I tried (viewRender)="myFunction($event)", but its not firing the myFunction. Anybody has any ideas? Thanks.
Hi,
I think you can use this;
https://stackblitz.com/edit/github-qqwdyk

Best Regards.

zyx236
Posts: 4
Joined: 06 Feb 2019, 23:38

20 Feb 2019, 02:40

Exactly what I was looking for. THANK YOU!!

zyx236
Posts: 4
Joined: 06 Feb 2019, 23:38

20 Feb 2019, 02:56

....and this is how I got the Month and Year on prev and next clicks:
console.log(this.fullCalendar.calendar.view.title);

yigitfindikli
Posts: 449
Joined: 08 Aug 2018, 14:09

20 Feb 2019, 09:04

zyx236 wrote:
20 Feb 2019, 02:40
Exactly what I was looking for. THANK YOU!!
Glad to hear! You can find more info in https://fullcalendar.io/docs/v4 .

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests