widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.service.ts
Methods |
determineAggregationValue | ||||||||
determineAggregationValue(interval: TimeRangeInterval)
|
||||||||
Determines the aggregation value based on the provided interval.
Parameters :
Returns :
AggregationOption
The corresponding aggregation value. |
determineInterval | ||||||||||||
determineInterval(dateFrom: string, dateTo: string)
|
||||||||||||
Determines the interval between two dates.
Parameters :
Returns :
TimeRangeInterval
The time range interval unit. |
determineNewAggregationValue | ||||||||||||
determineNewAggregationValue(currentValue: AggregationOption, disabledOptions: AggregationOptionStatus)
|
||||||||||||
Determines the new aggregation value based on the current value and disabled options. Goal is to switch to the next available aggregation option if the current one is disabled.
Parameters :
Returns :
AggregationOption
The new aggregation option. |
updateDisabledStateOfAggregationOptionEntries | ||||||||||||||||
updateDisabledStateOfAggregationOptionEntries(dateFrom: string, dateTo: string, aggregationValuesArr)
|
||||||||||||||||
Updates the disabled state of aggregation options based on the current value of the time interval form control. This method:
The disabled state is stored in the The
Parameters :
Returns :
AggregationOptionStatus
An object containing the disabled state of each aggregation option. |