rhanb / nativescript-fancy-calendar

Fancy calendar for NativeScript :smile: :beers:
Other
21 stars 6 forks source link

How to get selected date in date changed event #4

Closed HemantSPawar closed 7 years ago

HemantSPawar commented 7 years ago

How to get selected date in date changed event as mentioned below. it shows empty object if i log(event)

public dateSelected(event) { console.log('date selected'); }

rhanb commented 7 years ago

You should be able to get the date value through:

public dateSelected(event) {
    console.dir(event.data);
}
HemantSPawar commented 7 years ago

i dont know whats going wrong here....im getting empty object when i console.dir (event.data); output/- {\"date\":{},\"selected\":true}