nekken / ng2-fullcalendar

95 stars 47 forks source link

How to trigger the Button event #73

Open MohamedSahir opened 6 years ago

MohamedSahir commented 6 years ago

Month view is not displaying whats wrong with below implementationa and is it possible to add month wise event like dayclick event.I have choose multiple date and add event for multiple days, is it possible by this library

Like DayEvent How to trigger a event for month,prev,next,week and day button

I need to do a service call to fetch a data when user click the month view.as per current implemention of full calander api , there is event click and dayclick , need a event for all button click to fetch server data. here is the demo.

https://stackblitz.com/edit/github-inz3zg?file=src/styles.css

talismandev commented 4 years ago

Hi! There are 2 ways to do it: 1) use custom prev/next button definitions in calendar options and bind click event to it. 2) use rangeChange in ng2-fullcalendar event like this: <ng2-fullcalendar (rangeChange)="rangeChange($event)" ... >