Skip to content

inputFieldChanged callback

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

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

    constructor() {}

    onInputFieldChanged(event: IMyInputFieldChanged) {
        console.log('onInputFieldChanged(): Value: ', event);
    }
}