DatepickerComponent
Component Metadata
Section titled “Component Metadata”Selector: yuv-datepicker
Standalone: Yes
Implements: ControlValueAccessor, Validator, OnInit, OnDestroy
Inputs
Section titled “Inputs”calendar
Section titled “calendar”Type: boolean
Default Value: false
Whether or not to show a calendar picker
disabled
Section titled “disabled”Type: boolean
Default Value: false
hour12
Section titled “hour12”Type: boolean
Whether or not to 12-hour format vs. default 24h format. By default the component will try to figure out which hour cycle to use based on the locale. Setting hour12 property to either trueor false will overwrite that.
labels
Section titled “labels”Type: DatepickerLabels | undefined
locale
Section titled “locale”Type: string
maxDate
Section titled “maxDate”Type: Date
Allow only date inputs before this date
minDate
Section titled “minDate”Type: Date
Allow only date inputs after this date
onlyFutureDates
Section titled “onlyFutureDates”Type: boolean
Allow only date inputs that are after today
readonly
Section titled “readonly”Type: boolean
Default Value: false
Whether or not the component is readonly
withTime
Section titled “withTime”Type: boolean
Whether or not to also include time
Properties
Section titled “Properties”_hour12
Section titled “_hour12”Type: unknown
Default Value: false
allSelected
Section titled “allSelected”Type: unknown
Default Value: signal<boolean>(false)
calendarValue
Section titled “calendarValue”Type: Date | null
Default Value: null
dateInputCmp
Section titled “dateInputCmp”Type: DateInputComponent
propagateChange
Section titled “propagateChange”Type: unknown
Default Value: () => \{...\}
validationChange
Section titled “validationChange”Type: unknown
Default Value: () => \{...\}
Methods
Section titled “Methods”clear(): voidclickHandler
Section titled “clickHandler”clickHandler(): voidcloseCalendar
Section titled “closeCalendar”closeCalendar(): voidcopyToClipboard
Section titled “copyToClipboard”copyToClipboard(): voidfocusOutHandler
Section titled “focusOutHandler”focusOutHandler(): voidkeydownHandler
Section titled “keydownHandler”keydownHandler(e: KeyboardEvent): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| e | KeyboardEvent |
onCalendarDateApply
Section titled “onCalendarDateApply”onCalendarDateApply(date: Date): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| date | Date |
onDateInputBlur
Section titled “onDateInputBlur”onDateInputBlur(): voidonTextInputStatusChange
Section titled “onTextInputStatusChange”onTextInputStatusChange(e: literal type): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| e | literal type |
openCalendar
Section titled “openCalendar”openCalendar(): voidregisterOnChange
Section titled “registerOnChange”registerOnChange(fn: function): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| fn | function |
registerOnTouched
Section titled “registerOnTouched”registerOnTouched(fn: function): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| fn | function |
registerOnValidatorChange
Section titled “registerOnValidatorChange”registerOnValidatorChange(fn: function): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| fn | function |
validate
Section titled “validate”validate(ac: AbstractControl): ValidationErrors | nullArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| ac | AbstractControl |
writeValue
Section titled “writeValue”writeValue(value: any): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| value | any |