-
Notifications
You must be signed in to change notification settings - Fork 13
input click opens the calendar
kekeh edited this page Jun 15, 2019
·
7 revisions
<input class="input-box-style" placeholder="Click to select a date"
angular-mydatepicker name="mydate" (click)="dp.toggleCalendar()"
[(ngModel)]="model" [options]="myDpOptions"
#dp="angular-mydatepicker"/>import {IAngularMyDpOptions, IMyDateModel} from 'angular-mydatepicker';
// other imports are here...
export class MyTestApp {
myDpOptions: IAngularMyDpOptions = {
dateRange: false,
dateFormat: 'dd.mm.yyyy'
// other options are here...
};
model: IMyDateModel = null;
constructor() { }
}