Closed geethzz closed 2 years ago
Hi @geethzz
Here https://github.com/kekeh/angular-mydatepicker/wiki/disable-until-yesterday is example on how to disable dates before current date.
With the disableDates option you can disable dates with styles: https://github.com/kekeh/angular-mydatepicker/wiki/usage-of-disableDates-option
All examples: https://github.com/kekeh/angular-mydatepicker/wiki
I am creating an inline datepicker with following functionalities.
I have already achieved the first two criteria's, but don't know how to implement the third one.![calendar](https://user-images.githubusercontent.com/22953006/145567393-f2284f0d-f31b-4418-a478-3f5645369f9c.png)
This is what my calendar look like now. And I need to disable the dates before current date.
Here is my code
<div class="input-box-container">
<input angular-mydatepicker [min]="minDateValue" style="display: none;" class="input-box" placeholder="Click to select a date" angular-mydatepicker name="mydate" (click)="dp.toggleCalendar()" [(ngModel)]="model" [options]="myDpOptions" #dp="angular-mydatepicker" (dateChanged)="onDateChanged($event)" (rangeDateSelection)="onRangeDateSelection($event)" />
</div>
component.ts
} getCopyOfOptions(): IAngularMyDpOptions { return JSON.parse(JSON.stringify(this.myDpOptions)); }`