DatetimeRangeComponent
Component Metadata
Section titled “Component Metadata”Selector: yuv-datetime-range
Standalone: Yes
Implements: ControlValueAccessor, OnInit, OnDestroy
Inputs
Section titled “Inputs”operator
Section titled “operator”Type: Operator
Default Value: Operator.EQUAL
readonly
Section titled “readonly”Type: boolean
Default Value: false
Will prevent the input from being changed (default: false)
situation
Section titled “situation”Type: string
withTimeInput
Section titled “withTimeInput”Type: boolean
Default Value: false, \{ alias: 'withTime' \}
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”availableSearchOptions
Section titled “availableSearchOptions”Type: []
Default Value: [ \{ label: OperatorLabel.EQUAL, value: Operator.EQUAL \}, \{ label: OperatorLabel.GREATER_OR_EQUAL, value: Operator.GREATER_OR_EQUAL \}, \{ label: OperatorLabel.LESS_OR_EQUAL, value: Operator.LESS_OR_EQUAL \}, \{ label: OperatorLabel.INTERVAL_INCLUDE_BOTH, value: Operator.INTERVAL_INCLUDE_BOTH \} ]
ngControl
Section titled “ngControl”Type: unknown
Default Value: injectNgControl(this)
propagateChange
Section titled “propagateChange”Type: unknown
Default Value: () => \{...\}
rangeForm
Section titled “rangeForm”Type: unknown
Default Value: new FormGroup(\{ dateValue: new FormControl<Date | string | undefined>(undefined, \{ nonNullable: true, validators: [Validators.required] \}), operator: new FormControl<Operator>(this.availableSearchOptions[1].value, \{ nonNullable: true \}), dateValueFrom: new FormControl<Date | string | undefined>(undefined, \{ nonNullable: true \}) \})
withTime
Section titled “withTime”Type: unknown
Default Value: linkedSignal(this.withTimeInput)
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”registerOnChange
Section titled “registerOnChange”registerOnChange(fn: any): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| fn | any |
registerOnTouched
Section titled “registerOnTouched”registerOnTouched(fn: any): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| fn | any |
writeValue
Section titled “writeValue”writeValue(value?: RangeValue<Date | string>): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| value | RangeValue<Date | string> |
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[] |