DateRangeService
A service that handles the communication between the components that are placed inside the DateRangeComponent.
For example, the start and end DateInput
and DateRangePopup
components.
Name | Type | Default | Description |
---|---|---|---|
activeRangeEnd |
|
Gets the current | |
activeRangeEnd$ |
|
An Observable instance that notifies when the | |
dateRangePopup$ |
|
An Observable instance that notifies when the | |
endInput$ |
|
An Observable instance that notifies when the end | |
focusedDate |
|
Gets the current | |
focusedDate$ |
|
An Observable instance that notifies when the | |
max |
|
Gets the | |
min |
|
Gets the | |
range$ |
|
An Observable instance that notifies when the state of the selection range is changed. | |
selectionRange |
|
Gets the current | |
startInput$ |
|
An Observable instance that notifies when the start |
Methods
activatePopup |
---|
Activates the registered |
deactivatePopup |
---|
Deactivates the registered |
destroy |
---|
Completes all observables to mitigate possible memory leaks. Calls the method when a component that uses it is destroyed. |
hasActiveComponent | ||||
---|---|---|---|---|
Returns | ||||
|
registerEndInput | ||||||
---|---|---|---|---|---|---|
Registers a new end | ||||||
|
registerPopup | ||||||
---|---|---|---|---|---|---|
Registers a new | ||||||
|
registerStartInput | ||||||
---|---|---|---|---|---|---|
Registers a new start | ||||||
|
setActiveRangeEnd | ||||||
---|---|---|---|---|---|---|
Updates the | ||||||
|
setFocusedDate | ||||||
---|---|---|---|---|---|---|
Updates the focused date. Notifies all | ||||||
|
setRange | ||||||
---|---|---|---|---|---|---|
Updates the selection range. Notifies all | ||||||
|