DatetimeComponent
Component Metadata
Section titled “Component Metadata”Selector: yuv-datetime
Standalone: Yes
Implements: ControlValueAccessor, OnInit
Inputs
Section titled “Inputs”calendar
Section titled “calendar”Type: boolean
Default Value: true
Whether to show the calendar icon that opens the date picker calendar (default: true)
locale
Section titled “locale”Type: string
Default Value: this.translate.currentLang
onlyFutureDates
Section titled “onlyFutureDates”Type: boolean
Default Value: false
Whether or not to allow only values in the future (default: false)
readonly
Section titled “readonly”Type: boolean
Default Value: false
Will prevent the input from being changed (default: false)
withTime
Section titled “withTime”Type: boolean
Default Value: false
Enables setting time as well (default: false)
disabled
Section titled “disabled”Type: BooleanInput
placeholder
Section titled “placeholder”Type: string
required
Section titled “required”Type: BooleanInput
Properties
Section titled “Properties”_locale
Section titled “_locale”Type: unknown
Default Value: signal<string>(this.translate.currentLang)
Type: unknown
Default Value: new FormControl<Date | null>(null)
labels
Section titled “labels”Type: DatepickerLabels
ngControl
Section titled “ngControl”Type: unknown
Default Value: injectNgControl(this)
pickerCmp
Section titled “pickerCmp”Type: unknown
Default Value: viewChild.required(DatepickerComponent)
propagateChange
Section titled “propagateChange”Type: unknown
Default Value: () => \{...\}
autofilled
Section titled “autofilled”Type: boolean
controlType
Section titled “controlType”Type: string
disableAutomaticLabeling
Section titled “disableAutomaticLabeling”Type: boolean
stateChanges
Section titled “stateChanges”Type: unknown
Default Value: new Subject<void>()
userAriaDescribedBy
Section titled “userAriaDescribedBy”Type: string
Methods
Section titled “Methods”onValueChange
Section titled “onValueChange”onValueChange(e: any): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| e | any |
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(): voidsetDisabledState
Section titled “setDisabledState”setDisabledState(isDisabled: boolean): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| isDisabled | boolean |
writeValue
Section titled “writeValue”writeValue(value: any): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| value | any |
onContainerClick
Section titled “onContainerClick”onContainerClick(event: MouseEvent): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| event | MouseEvent |
onFocusIn
Section titled “onFocusIn”onFocusIn(): voidonFocusout
Section titled “onFocusout”onFocusout(): voidonNgOnDestroy
Section titled “onNgOnDestroy”onNgOnDestroy(): voidsetDescribedByIds
Section titled “setDescribedByIds”setDescribedByIds(ids: string[]): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| ids | string[] |