File

core/dashboard/wiget-time-context/widget-time-context-query.service.ts

Index

Methods

Constructor

constructor(activatedRoute: ActivatedRoute, helperService: WidgetTimeContextHelperService, router: Router)
Parameters :
Name Type Optional
activatedRoute ActivatedRoute No
helperService WidgetTimeContextHelperService No
router Router No

Methods

clearQueryParams
clearQueryParams()

Clears all date time context related query parameters.

Returns : void
dateTimeContextFromQueryParams
dateTimeContextFromQueryParams()

Creates widget time context from query parameters. Interval data takes precedence over date time context described by date "from" and date "to", so if valid interval is provided, date "from" and date "to" are ignored, and they are recalculated with interval.

Returns : WidgetTimeContextState | null

Widget time context state based on current query params or null if query params provide no valid context.

queryParamsChange$
queryParamsChange$()

Returns observable that emits date context query params every time query params change. Invalid values are filtered out.

Observable of date context query params.

setDateContextQueryParams
setDateContextQueryParams(undefined: WidgetTimeContextState)

Sets query parameters related to date time context. Valid interval (and other than 'custom') takes precedence over context described by date "from" and date "to". Interval and context described by date "from" and date "to" exclude each other.

Parameters :
Name Type Optional
WidgetTimeContextState No
Returns : void

results matching ""

    No results matching ""