-
Notifications
You must be signed in to change notification settings - Fork 13
rangeDateSelection callback
kekeh edited this page May 26, 2019
·
2 revisions
<input angular-mydatepicker [(ngModel)]="model" [options]="myDatePickerOptions"
#dp="angular-mydatepicker" (rangeDateSelection)="onRangeDateSelection($event)"/>
import {IAngularMyDpOptions, IMyRangeDateSelection} from 'angular-mydatepicker';
export class MyApp {
myDatePickerOptions: IAngularMyDpOptions = {
dateRange: true
// other options here...
}
constructor() {}
onRangeDateSelection(event: IMyRangeDateSelection): void {
console.log('onRangeDateSelection(): event: ', event);
}
}