Date input

A text input that picks a date or a date range from a calendar

Contents

Compact date input

Inputs in Compact date input
compactDateInput ?: boolean = false

This input only works on mobile when the type is `DateInputType.DATE`. If true, the date icon will be hidden on mobile.

Also set in this example
control : FormControl<T>
type : IsAny<T> extends true ? any : [T] extends [Date] ? DateInputType.DATE : [T] extends [any] ? DateInputType.DATERANGE : never

Whether the field picks a single date or a date range. A `FormControl<Date>` accepts `DATE`; a `FormControl<DateRange>` accepts `DATERANGE`, which renders separate start and end fields.

Outputs
iconEndClick ?: any = new EventEmitter<MouseEvent>()
iconStartClick ?: any = new EventEmitter<MouseEvent>()
onBlur ?: any = new EventEmitter<void>()
onFocus ?: any = new EventEmitter<void>()