twinssbc / Ionic2-Calendar

A calendar component based on Ionic framework
https://ionic-calendar-demo.stackblitz.io
MIT License
387 stars 197 forks source link

onDayHeaderSelected question #618

Open rosalia98 opened 3 years ago

rosalia98 commented 3 years ago

Hello! My understanding of the onDayHeaderSelected is that clicking on the row displaying the days of the week will allow access to some information regarding the events happening in that day. My code:

<calendar
    [eventSource]="eventSource"
    calendarMode="week"
    [currentDate]="calendar.currentDate"
    (onEventSelected)="navigateToEditDay($event)"
    (onDayHeaderSelected)="onDayHeaderSelected($event)"
    startingDayWeek=1
  ></calendar>

and in .ts:

onDayHeaderSelected(event:any){
    console.log('header event ', event);
  }

What I expect to happen is that, clicking on any day in the red rectangle will trigger the event. But nothing gets printed.

twinssbc commented 3 years ago

@rosalia98 Which version are you using? This method is only exposed starting from version 0.6.8.