core/dashboard/wiget-time-context/widget-time-context-helper.service.ts
Methods |
getActionBarPriority | ||||||||
getActionBarPriority(displaySettings: WidgetDisplaySettings)
|
||||||||
Defines priority for single action bar item of bar items that has the 'timecontext' groupId. Widgets that uses WidgetTimeContextComponent can be assigned to three levels of priority: HIGH priority means that widget is using time range pickers, realtime and aggregation features. Widgets: Data points graph, Data points graph 2.0, Data points table. MEDIUM priority means that widget is using time range pickers and realtime features. Widgets: Event list. LOW priority means that widget is using realtime feature only. Widgets: Map
Parameters :
Returns :
WidgetTimeContextActionBarPriority
priority of widget action bar item. |
getDateTimeContextByInterval | ||||||
getDateTimeContextByInterval(intervalId)
|
||||||
Calculates date time context according to provided interval.
Parameters :
Returns :
DateTimeContext
Tuple of dates- the first one is date "from" according to selected interval, second one is date "to" (now). |
isSelectableInterval | ||||||
isSelectableInterval(intervalId)
|
||||||
Validates provided param for being selectable Interval id.
Parameters :
Returns :
any
True if provided id is valid, selectable Interval id and false if it's not. |
isValidAggregation | ||||||||
isValidAggregation(aggregation: aggregationType)
|
||||||||
Validates provided aggregation:
Parameters :
Returns :
boolean
Result of validation of aggregation. |
isValidDateRange | ||||||||||||
isValidDateRange(stringifiedDateFrom: string, stringifiedDateTo: string)
|
||||||||||||
Validates provided date "from" and date "to":
Parameters :
Returns :
boolean
Result of validation of dates range. |