mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 23:53:49 +00:00
[Limits] Begin using limits from scrolling list view
WTD-1223.
This commit is contained in:
@ -55,9 +55,17 @@ define(
|
||||
* @returns {string} the text to display
|
||||
*/
|
||||
getValue: function (domainObject, data, index) {
|
||||
return telemetryFormatter.formatRangeValue(
|
||||
data.getRangeValue(index, rangeMetadata.key)
|
||||
);
|
||||
var range = rangeMetadata.key,
|
||||
limit = domainObject.getCapability('limit'),
|
||||
value = data.getRangeValue(index, range),
|
||||
cell = telemetryFormatter.formatRangeValue(value);
|
||||
|
||||
return {
|
||||
cssClass: limit && limit.evaluate(value, range),
|
||||
toString: function () {
|
||||
return cell;
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user