DateRangeService
Manages communication between components inside the DateRangeComponent. For example, handles interactions between the start and end DateInput components and the DateRangePopup component.
Name | Type | Default | Description |
---|---|---|---|
activeRangeEnd |
|
Gets the current | |
activeRangeEnd$ |
|
Notifies when the | |
dateRangePopup$ |
|
Notifies when the | |
endInput$ |
|
Notifies when the end DateInput component changes.
For example, when you attach a new end | |
focusedDate |
|
Gets the current | |
focusedDate$ |
|
Notifies when the | |
max |
|
Gets the maximum range value.
Takes the | |
min |
|
Gets the minimum range value.
Takes the | |
range$ |
|
Notifies when the selection range state changes. | |
selectionRange |
|
Gets the current | |
startInput$ |
|
Notifies when the start DateInput component changes.
For example, when you attach a new start |
Methods
activatePopup |
---|
Opens the registered DateRangePopup component. Opens the popup and focuses the calendar. |
deactivatePopup |
---|
Deactivates the registered |
destroy |
---|
Completes all observables to prevent memory leaks. Call this method when you destroy a component that uses the service. |
hasActiveComponent | ||||
---|---|---|---|---|
Checks if any component inside the DateRangeComponent is active. For example, detects an open popup or a focused DateInput component. | ||||
|
registerEndInput | ||||||
---|---|---|---|---|---|---|
Registers a new end | ||||||
|
registerPopup | ||||||
---|---|---|---|---|---|---|
Registers a new | ||||||
|
registerStartInput | ||||||
---|---|---|---|---|---|---|
Registers a new start DateInput component and notifies all | ||||||
|
setActiveRangeEnd | ||||||
---|---|---|---|---|---|---|
Updates the | ||||||
|
setFocusedDate | ||||||
---|---|---|---|---|---|---|
Updates the focused date and notifies all | ||||||
|
setRange | ||||||
---|---|---|---|---|---|---|
Updates the selection range and notifies all | ||||||
|