mirror of
https://github.com/nasa/openmct.git
synced 2025-04-20 17:11:11 +00:00
[Limits] Use datum for scrolling list
Use notion of a datum from scrolling list view when evaluating limits, WTD-1223.
This commit is contained in:
parent
2a4bf7b95a
commit
35b5b29d03
@ -54,10 +54,10 @@ define(
|
||||
* column.
|
||||
* @returns {string} the text to display
|
||||
*/
|
||||
getValue: function (domainObject, data, index) {
|
||||
getValue: function (domainObject, datum) {
|
||||
return {
|
||||
text: telemetryFormatter.formatDomainValue(
|
||||
data.getDomainValue(index, domainMetadata.key)
|
||||
datum[domainMetadata.key]
|
||||
)
|
||||
};
|
||||
}
|
||||
|
@ -54,11 +54,11 @@ define(
|
||||
* column.
|
||||
* @returns {string} the text to display
|
||||
*/
|
||||
getValue: function (domainObject, data, index) {
|
||||
getValue: function (domainObject, datum) {
|
||||
var range = rangeMetadata.key,
|
||||
limit = domainObject.getCapability('limit'),
|
||||
value = data.getRangeValue(index, range),
|
||||
alarm = limit.evaluate(value, range);
|
||||
value = datum[range],
|
||||
alarm = limit.evaluate(datum, range);
|
||||
|
||||
return {
|
||||
cssClass: alarm && alarm.cssClass,
|
||||
|
Loading…
x
Reference in New Issue
Block a user