Skip to content

DatetimeComponent

component

Selector: yuv-datetime

Standalone: Yes

Implements: ControlValueAccessor, OnInit

Type: boolean

Default Value: true

Whether to show the calendar icon that opens the date picker calendar (default: true)

Type: string

Default Value: this.translate.currentLang

Type: boolean

Default Value: false

Whether or not to allow only values in the future (default: false)

Type: boolean

Default Value: false

Will prevent the input from being changed (default: false)

Type: boolean

Default Value: false

Enables setting time as well (default: false)

Type: BooleanInput

Type: string

Type: BooleanInput

Type: unknown

Default Value: signal<string>(this.translate.currentLang)

Type: unknown

Default Value: new FormControl<Date | null>(null)

Type: DatepickerLabels

Type: unknown

Default Value: injectNgControl(this)

Type: unknown

Default Value: viewChild.required(DatepickerComponent)

Type: unknown

Default Value: () => \{...\}

Type: boolean

Type: string

Type: boolean

Type: unknown

Default Value: new Subject<void>()

Type: string

onValueChange(e: any): void
NameTypeDescription
eany
openCalendar(): void
registerOnChange(fn: function): void
NameTypeDescription
fnfunction
registerOnTouched(): void
setDisabledState(isDisabled: boolean): void
NameTypeDescription
isDisabledboolean
writeValue(value: any): void
NameTypeDescription
valueany
onContainerClick(event: MouseEvent): void
NameTypeDescription
eventMouseEvent
onFocusIn(): void
onFocusout(): void
onNgOnDestroy(): void
setDescribedByIds(ids: string[]): void
NameTypeDescription
idsstring[]