DateRangeService
Manages communication between components inside the DateRangeComponent. For example, handles interactions between the start and end DateInput components and the DateRangePopup component.
Definition
Package:@progress/kendo-angular-dateinputs
Methods
Opens the registered DateRangePopup component. Opens the popup and focuses the calendar.
Deactivates the registered DateRangePopup component.
The method closes the popup.
Completes all observables to prevent memory leaks. Call this method when you destroy a component that uses the service.
Checks if any component inside the DateRangeComponent is active. For example, detects an open popup or a focused DateInput component.
boolean
Returns true if an active component is present.
Registers a new end DateInput component and notifies all endInput$ listeners.
Registers a new DateRangePopup component and notifies all dateRangePopup$ listeners.
Registers a new start DateInput component and notifies all startInput$ listeners.
Updates the activeRangeEnd value and notifies all activeRangeEnd$ listeners.
Updates the focused date and notifies all focusedDate$ listeners.
Updates the selection range and notifies all range$ listeners.
Accessors
Gets the current activeRangeEnd value.
focusedDate
Date
Gets the current focusedDate value.
max
Date
Gets the maximum range value.
Takes the max value from the end DateInput component or the max value of the calendar.
min
Date
Gets the minimum range value.
Takes the min value from the start DateInput component or the min value of the calendar.
Gets the current selectionRange value.
Properties
activeRangeEnd$
BehaviorSubject<SelectionRangeEnd>
Notifies when the activeRangeEnd state changes.
dateRangePopup$
BehaviorSubject<DateRangePopupComponent>
Notifies when the DateRangePopup component changes.
endInput$
BehaviorSubject<DateInputComponent>
Notifies when the end DateInput component changes.
For example, when you attach a new end DateInput or detach the old one.
focusedDate$
BehaviorSubject<Date>
Notifies when the focusedDate changes.
range$
BehaviorSubject<SelectionRange>
Notifies when the selection range state changes.
startInput$
BehaviorSubject<DateInputComponent>
Notifies when the start DateInput component changes.
For example, when you attach a new start DateInput or detach the old one.