Skip to content

calendarViewChanged callback

kekeh edited this page May 26, 2019 · 1 revision
<input angular-mydatepicker [(ngModel)]="model" [options]="myDatePickerOptions" 
    #dp="angular-mydatepicker" (calendarViewChanged)="onCalendarViewChanged($event)"/>
import {IAngularMyDpOptions, IMyCalendarViewChanged} from 'angular-mydatepicker';

export class MyApp {
    myDatePickerOptions: IAngularMyDpOptions = {
        // options here...
    }

    constructor() {}

    onCalendarViewChanged(event: IMyCalendarViewChanged) {
        console.log('onCalendarViewChanged(): Year: ', event);
    }
}