ng-gregorian-hijri-datepicker
Version:
* Lightweight **Angular** datepicker based on [ng-bootstrap](https://ng-bootstrap.github.io/#/components/datepicker/overview) that supports **Gregorian** and **Hijri** calendars. * Provides ability to swap between **Gregorian** and **Hijri** calendars *
27 lines (24 loc) • 765 B
HTML
<div provideParentForm>
<input
class="form-control hijriInput"
[(ngModel)]="selectedDate"
[]="placeHolder ?placeHolder : 'd/M/yyyy'"
[]="7"
ngbDatepicker
(click)="d.toggle()"
(dateSelect)="changeDate()"
[]="readonly"
[]="min"
[]="max"
[]="isRequired"
[]="name"
(blur)="onBlur()"
[]="footerTemplate"
[]="disabled" />
</div>
<ng-template
<hr class="my-0">
<button class="btn btn-secondary btn-sm m-2 float-right" type="button" (click)="d.close()">Close</button>
<button class="btn btn-primary btn-sm m-2 float-left" type="button" (click)="clear()">Clear</button>
</ng-template>