ng-jalali-date-time
Version:
Jalali date / month / range picker for Angular with Material Design support
38 lines (37 loc) • 1.38 kB
TypeScript
import { OnInit, EventEmitter } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { JalaliLocale } from '../../shared/jalali.locale';
import { NgJalaliDateTimeValueInterface } from './ng-jalali-date-time.interface';
import { JalaliCalendarInterface } from '../../shared/jalali.interface';
import { NgJalaliDateTimeService } from '../../ng-jalali-date-time.service';
import { NgJalaliDateTimeConfigInterface, NgJalaliDateTimeCssInterface } from '../../ng-jalali-date-time.interface';
export declare class NgJalaliDateTimeComponent implements OnInit {
private readonly service;
form: FormGroup;
name: string;
appearance: string;
config: NgJalaliDateTimeConfigInterface;
css: NgJalaliDateTimeCssInterface;
value: NgJalaliDateTimeValueInterface;
label: string;
show: boolean;
random: string;
month: string;
calendar: JalaliCalendarInterface;
today: string;
reset: boolean;
jalaliLocale: JalaliLocale;
week: string[];
changed: EventEmitter<NgJalaliDateTimeValueInterface>;
constructor(service: NgJalaliDateTimeService);
ngOnInit(): void;
validate(): {
required: boolean;
};
showCalendar(show: boolean): void;
changeMonth(change: number): void;
setTitle(): void;
setDate(jalali: string): void;
getTime(type: string): number;
setTime(): void;
}