core/dashboard/widget-auto-refresh-context/widget-global-auto-refresh.service.ts
Properties |
Methods |
decrementLoading |
decrementLoading()
|
Decrements the loading count by 1.
Returns :
void
|
incrementLoading |
incrementLoading()
|
Increments the loading count by 1.
Returns :
void
|
onEditModeChange | ||||||||
onEditModeChange(editMode: boolean)
|
||||||||
Handles changes to the edit mode and updates the isEnabled$ variable.
Parameters :
Returns :
void
|
resetCountdown |
resetCountdown()
|
Resets the countdown timer by emitting a reset action after a short delay.
Returns :
void
|
resetCountdownOnLoadingComplete$ |
resetCountdownOnLoadingComplete$()
|
Returns an Observable that triggers the countdown reset action when loading completes. This method creates an Observable that:
Returns :
MonoTypeOperatorFunction<any>
|
resetServiceToDefaults |
resetServiceToDefaults()
|
Resets the service's settings and parameters to their default values.
Returns :
void
|
Async setAutoRefreshQueryParam | ||||||||
setAutoRefreshQueryParam(queryParams: GlobalAutoRefreshQueryParam)
|
||||||||
Sets the global auto-refresh query parameter in the current route. Example :
Parameters :
Returns :
Promise<void>
|
autoRefreshSettings |
Type : object
|
Default value : {
/**
* BehaviorSubject that emits the current state of auto-refresh button.
* Defaults to DEFAULT_INTERVAL_STATE.
*/
isEnabled$: new BehaviorSubject<boolean>(DEFAULT_INTERVAL_STATE),
/**
* BehaviorSubject that emits the current auto-refresh interval value.
* Defaults to DEFAULT_INTERVAL_VALUE.
*/
refreshInterval$: new BehaviorSubject<number>(DEFAULT_INTERVAL_VALUE),
/**
* BehaviorSubject that emits whether auto-refresh has been manually disabled by the user.
* Defaults to false.
*/
userDisabledManually$: new BehaviorSubject(false)
}
|
Object containing behavior subjects for managing auto-refresh settings. |
countdownActions |
Type : object
|
Default value : {
/**
* Subject used to stop the countdown.
*/
stop$: new Subject<void>(),
/**
* Subject used to reset the countdown.
*/
reset$: new Subject<void>(),
/**
* Subject that emits when the countdown has ended.
*/
countdownEnded$: new Subject<void>()
}
|
Object containing subjects for managing countdown actions. |
globalRefreshWidgetsCount |
Default value : signal(0)
|
A signal representing the number of widgets with the global auto-refresh option enabled. |
onDashboardSave$ |
Default value : new Subject<void>()
|
Subject that emits when a dashboard save operation is triggered. |