@asi-ngtools/lib
Version:
This project is a little components library, simple to use, which will help you to simplify your project.
38 lines (37 loc) • 1.54 kB
TypeScript
import { AsiCalendarComponent } from './../asi-calendar/asi-calendar.component';
import { DefaultControlValueAccessor } from './../common/default-control-value-accessor';
import { FormControl } from '@angular/forms';
import { ElementRef, OnInit, AfterViewInit, Renderer2 } from '@angular/core';
export declare class AsiDatePickerComponent extends DefaultControlValueAccessor implements OnInit, AfterViewInit {
private renderer;
private elementRef;
/** Label to display (is translated) */
label: string;
/** Label position */
labelPosition: 'top' | 'left' | 'right' | 'bottom' | 'bottom-center' | 'top-center';
/** placeholder if not null else will be the date display pattern */
placeholder: any;
/** date display pattern */
pattern: string;
/** min date available */
minDate: Date;
/** max date available */
maxDate: Date;
/** min year selectable */
minYear: number;
/** max year selectable */
maxYear: number;
/** open automatically when the input is focused*/
autoOpen: boolean;
/** allow you to disable day of week exemple [disableDayOfWeek]="[1, 2]"" while disabled monday and tusday */
disableDayOfWeek: number | Array<number>;
inputControl: FormControl;
inputElement: ElementRef;
calendarElement: AsiCalendarComponent;
constructor(renderer: Renderer2, elementRef: ElementRef);
ngOnInit(): void;
ngAfterViewInit(): void;
openCalendar(): void;
onDatePicked(date: Date): void;
writeValue(value: Date): void;
}