Skip to content

calendarToggle callback

Keke edited this page Feb 11, 2020 · 2 revisions
<input angular-mydatepicker [(ngModel)]="model" [options]="myDatePickerOptions" 
    #dp="angular-mydatepicker" (calendarToggle)="onCalendarToggle($event)">
import {IAngularMyDpOptions} from 'angular-mydatepicker';

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

    constructor() {}

    onCalendarToggle(event: number): void {
        console.log('onCalendarToggle(): Reason: ', event);
    }
}