@hxui/angular
Version:
This README includes the steps that are necessary to import the HxUi-angular into a project or to contribute with development.
27 lines (26 loc) • 1.01 kB
TypeScript
import { OnInit, EventEmitter, SimpleChanges, OnChanges, ElementRef } from '@angular/core';
import { PositioningService } from '../positioning';
export declare class DatepickerComponent implements OnInit, OnChanges {
private hostElement;
private positioningService;
selectedDate: Date;
validators: Array<(date: Date) => boolean>;
onDateSelected: EventEmitter<Date>;
viewDate: Date;
days: Array<Date>;
week: Array<string>;
private presentDate;
private cellCount;
constructor(hostElement: ElementRef, positioningService: PositioningService);
renderCalendar(): void;
private positionCalendar();
previousMonth(): void;
nextMonth(): void;
isCurrentMonth(inputDate: Date): boolean;
isCurrentDay(inputDate: Date): boolean;
isSelectedDay(inputDate: Date): boolean;
isInvalidDay(inputDate: Date): boolean;
setSelectedDate(date: Date): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnInit(): void;
}