Skip to content

RangeSelectDateComponent

component

Component for selecting a date range based on pre-defined ranges like ‘today’, ‘this week’, ‘this month’, etc. It also allows to pick a custom date range.

Selector: yuv-range-select-date

Standalone: Yes

Implements: ControlValueAccessor, OnDestroy

Type: boolean

Default Value: true

Whether to show the custom date range option.

Type: DateRange[]

Default Value: ['today', 'yesterday', 'thisWeek', 'thisMonth', 'thisYear']

Range values to be used in the dropdown.

Type: BooleanInput

Type: string

Type: BooleanInput

Type: unknown

Default Value: new FormControl<string>(this.#ANY_OPTION, \{ nonNullable: true \})

Type: unknown

Default Value: injectNgControl(this)

Type: unknown

Default Value: signal<\{ label: string; value: unknown \}[]>([])

Type: unknown

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

Type: boolean

Type: string

Type: boolean

Type: unknown

Default Value: new Subject<void>()

Type: string

registerOnChange(fn: function): void
NameTypeDescription
fnfunction
registerOnTouched(fn: function): void
NameTypeDescription
fnfunction
writeValue(value?: RangeSelectDateValue): void
NameTypeDescription
valueRangeSelectDateValue
onContainerClick(event: MouseEvent): void
NameTypeDescription
eventMouseEvent
onFocusIn(): void
onFocusout(): void
onNgOnDestroy(): void
setDescribedByIds(ids: string[]): void
NameTypeDescription
idsstring[]