ngx-hijri-gregorian-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
33 lines (32 loc) • 1.06 kB
TypeScript
import { OnInit, EventEmitter } from '@angular/core';
import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
import { DateType } from './consts';
import { DateFormatterService } from './date-formatter.service';
export declare class HijriGregorianDatepickerComponent implements OnInit {
private dateFormatterService;
datePicker: any;
selectedDateType: DateType;
selectedDate: NgbDateStruct;
selectedDateChange: EventEmitter<NgbDateStruct>;
label: string;
showLabel: boolean;
readonly: boolean;
isRequired: boolean;
disabled: boolean;
minHijri: NgbDateStruct;
maxHijri: NgbDateStruct;
minGreg: NgbDateStruct;
maxGreg: NgbDateStruct;
hijriLabel: string;
GregLabel: string;
placeHolder: string;
get DateType(): typeof DateType;
constructor(dateFormatterService: DateFormatterService);
ngOnInit(): void;
close(): void;
clear(): void;
getSelectedDate(): string;
dateSelected(): void;
hijriClick(): void;
gregClick(): void;
}